Home > other >  How to use OsmAnd in Android Studio to create a Route Planner App and add more features to it
How to use OsmAnd in Android Studio to create a Route Planner App and add more features to it

Time:01-13

I am creating a route planner application for my final year in college thesis, I am using Android Studio to create it and I want to be able to use OsmAnd to be the route planner application itself but also add some features to it these features are:

  • Allow the user to see speed camera locations on the map.
  • Allow the user to see speed camera location on their chosen path to their destination.
  • Send an alert to the user that there is a speed camera location coming up.
  • Allow users to mark speed camera locations on the map.
  • Alert the user of an incidents that have happened on their chosen path to their destination.

I am wondering if I can implement OsmAnd into Android Studio and create these features using OsmAnd as the route planner application. If this is possible could I have a step by step guide on how to implement OsmAnd into Android Studio.

If this is not possible could someone please direct me to another route planner application I can use where I am able to 1. Use it with Android Studio. 2. Be able to implement these features

CodePudding user response:

Since it's for college, I would not incorporate any 3rd party map library, you will only be forced to do too much "real" coding to get it working.

Instead I would make an app that shows a satellite image of a map, overlay an arrow on it, and move the arrow programmatically (with a timer perhaps).

Once you have this arrow moving over roads on a satellite view, you can then use that to position pretend speed camera's and have alerts pop up as your arrow moves close.

TLDR; simulate a sat nav and simulate GPS, then you have full control of what you want to display and won't be tied in to some of the 'real world' gotcha's of these SDKs.

If you wanted to go even more MVP, you don't need to show a map image. Just have a bulleted list come up on the screen explaining what is happening and use that as your simulation (and if you code it right, this can be re-used if you wanted to add visuals). Example:

  • Position 234N, 242.4S on the M25, 3 miles to junction 3
  • Movement: 234N, 242.3S on the M25, 2.9 miles to junction 3
  • Alert: A speed camera is 2 miles away
  • Movement: 234N, 242.2S on the M25, 2.8 miles to junction 3

etc ...

  • Related