PATRIK27 / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

Displaying routes in OSMDroid #270

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
First of all, thanks to OSMDroid! I ported my app in just 1.5 days (0.5 for 
porting, and 1 for fixing subtle API differences and finding workarounds for 
some - known - bugs). 

A highly recurring subject in forums when building Android map apps is: how can 
I draw a route between 2 points. 
There is no Google public API for that. Even more, when using Google Maps, 
displaying a route is prohibited by Google Terms&Conditions. 

But we are not using Google Maps anymore! 

There is a ready-to-use solution proposed on StackOverflow, based on a 
non-public Google KML API:
http://stackoverflow.com/questions/2023669/j2me-android-blackberry-driving-direc
tions-route-between-two-locations/2023685#2023685
Not public, not allowed, not supporting waypoints... :-(

So, working from this basis, I developped classes for getting/displaying 
routes, handling different OSM-based routing services: 
- MapQuest open API (both JSON and XML, which perfectly handles waypoints)
- YOURS KML API

If the community shows interest, I can provide these classes. 

Having the clone (OSMDroid) richer than the original (Google Maps API), isn't 
it a good idea ;-)

Original issue reported on code.google.com by www.trad...@free.fr on 26 Oct 2011 at 8:36

GoogleCodeExporter commented 8 years ago
I don't think this should be part of osmdroid.  If someone wants to make a 
third party overlay that would be fine.
1. Google routing API isn't allowed to be used like that.
2. osmdroid is an alternative to Google, so it should use Google.

Original comment by neilboyd on 26 Oct 2011 at 9:08

GoogleCodeExporter commented 8 years ago

Original comment by neilboyd on 26 Oct 2011 at 9:09

GoogleCodeExporter commented 8 years ago
yes, please provide it!

Original comment by gitarre...@googlemail.com on 18 Jun 2012 at 5:15

GoogleCodeExporter commented 8 years ago
This is now provided as a third party lib here: 

http://code.google.com/p/osmbonuspack/

Original comment by mathieu....@gmail.com on 31 Aug 2012 at 9:48

GoogleCodeExporter commented 8 years ago
Hello could you also provide a way of displaying (tracing) a route from KML or 
GPX files ? Thank a lot for the job

Original comment by TheCr...@gmail.com on 24 Oct 2012 at 3:10