I suppose you've found a decent answer yourself. I didn't think of the Directions API. That could be a piece of the puzzle. When you query the Directions API with a start and end address, you receive a series of steps that lead from start to finish. You can try to extract the start and end coordinates as well as the distance of the individual steps that take you from start to end. Only caveat is that the series of steps does not have a level of granularity that would provide a polygon that truthfully follows the path of the roads that are used for travel, but it's probably close enough based on the distance values associated with each step.
On Dec 17, 9:01 am, CJ <[email protected]> wrote: > Thanks a lot. That is really helpful for me and gives me a lot of > safety for my project. > > But I just stumbled over the > following:http://code.google.com/intl/en/apis/maps/documentation/directions/ > > At Directions Responses --> JSON > "overview_polyline": { > "points": > There I could get an code, in which the route points should be found?? > > Do you think it would be possible with the following "recipe" to get > the GPS-data > ???http://code.google.com/intl/en/apis/maps/documentation/utilities/poly... > > Thank you very much! > > On 17 Dez., 16:47, JP <[email protected]> wrote: > > > The Google Maps API does not offer the structured data that you are > > looking for (that I am aware of). > > This is not stashed away somewhere on the device, it isn't available. > > The data exchange between the client and the Maps server side is based > > on rastered (bitmap) map tiles. You'll have to find another source. > > You could see if you have more luck if you base your project on > > another map provider, Open Street Maps (OSM) comes to mind. I haven't > > used them on Android, but they may offer the structured data you are > > looking for. There is an open source project on Google Code that uses > > OSM based on recreated API calls of the Android Maps API, the link is > > burried on this list somewhere. > > > If you're not bound to Android, and considering this is a student > > project, you should check out Maemo Mapper. Last time I checked it was > > open sourced under GPL, and it uses vector, i.e. structured data that > > you can access to run your algorithms on. If you are allowed to do > > this, and assuming proper attribution, I suppose, you could fork off > > Maemo Mapper and implement your project that way. > > > Hope this helps. > > > On Dec 17, 4:17 am, CJ <[email protected]> wrote: > > > > Thanks for your answer, GPS Breadcrumbing seems to be really > > > interesting but unfortunatelly that's not what I'm working on. > > > > The key to my project is to compare every point of a route (maybe all > > > points of the showed Google Maps API Polyline) and its GPS data to a > > > certain fixed location. That means that I could ask for route > > > information between to cities and then calculate the distance to my > > > actual location (GPS date from smartphone) at every point of the route > > > (that way I know where the best place to meet/join). > > > > Unfortunatelly I have problems getting the GPS-data from Google Maps > > > API ! > > > > Can you/anybody help me? > > > > Thanks a lot !! > > > > Bye ;-) > > > > On 15 Dez., 14:38, Spiral123 <[email protected]> wrote: > > > > > It sounds like you are working on GPS Breadcrumbing. > > > > > If you take a snapshot of Latitude, Longitude (optionally Altitude) at > > > > defined time intervals during your trip you will be able to calculate > > > > Bearing, Velocity between points and distance of each point to a fixed > > > > other location using the handy functions built into the Location > > > > class......assuming that you just need distances calculated 'as the > > > > crow flies' rather than directional information. > > > > > Personally I'd store it in a JSON array because the information is > > > > sequential in nature so a SQL database may be overkill. > > > > > So.....search the web for GPS and Breadcrumbing, look into the Android > > > > Location class and learn how to use JSON. > > > > > Does that help? > > > > > On Dec 15, 6:26 am, CJ <[email protected]> wrote: > > > > > > Hi guys, > > > > > I’m a student and I’m working on a little Android project. At the > > > > > moment I am trying desperately to get information about a route > > > > > (start->finish) with Google Maps API. > > > > > > I would need the route as a string filled with points of the route > > > > > (GPS-Data) so I can calculate the distance from every single point to > > > > > a fixed other Location. > > > > > Can anybody help me or give me an advice? > > > > > Thank you very much! I would really appreciate it! > > > > > Bye > > > > > CJ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

