Skip to content

Add Routing using OSRM  #2

@rapterjet2004

Description

@rapterjet2004

DOD

  • Implemented Routing between current user position and one of the given marker positions.
  • Likely uses this package although it might be necessary to fork it in case I need any additional features. It's not integrated with flutter maps, however it should be simple enough to do myself when given the proper nodes from the server. I can use polylines to draw the route lines between each node, which can then be customized to suit my apps theme.
  • This is a large project but can be done, I just need time and proper motivation.

I sense two issues. First I'll need a way to get the location markers location in order to act as a starting point to the route.
That by itself is already a pain, and might involve creating a custom fork. Two, b/c campus bounds is limited, I'll have to find a way to disable routing once users are outside of campus bounds.

B/C i'm not using an outside bounds page, instead I could start my own location stream and simply disable the routing button if I detect that the user is outside of bounds. This requires me to reuse my previous code (good thing I left it commented) and to manage my own location data.

Since this uses internet, I'll need to manage permissions for that somehow. Likely I'll have to test the app beforehand to ensure that in case the user disables internet access, that the app lets them know via a pop up or something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions