Hi, I'm trying to construct URLs which use the Google maps API to plot a route along a known set of latitude/longitude points. Take, for example, a short segment with the following beginning and end points:
52 10.3225N,0 16.8076E 52 10.2647N,0 16.8826E These points can each be pasted into http://maps.google.com. Each point shows a green arrow. Hovering over the green arrow displays the latitude/longitude. Note that, for each point, the green arrow in the center of a white road. Next I try to place markers at exactly the same points using the API: http://maps.google.com/maps/api/staticmap?size=800x800&sensor=true&markers=color:red%7Clabel:Y%7C52%2010.3225N,0%2016.8076E http://maps.google.com/maps/api/staticmap?size=800x800&sensor=true&markers=color:red%7Clabel:Z%7C52%2010.2647N,0%2016.8826E The first link displays a "Y" marker but note that this is not displayed at the same location as when the lat/long was simply pasted into Google maps. The second link displays a "Z" marker but, again, it's not displayed at the same location as when the equivalent lat/ long was pasted into Google maps. Next I want to connect these two points with a route: http://maps.google.com/maps/api/staticmap?size=800x800&sensor=true&path=color:0x0000ff80%7C52%2010.3225N,0%2016.8076E%7C52%2010.2647N,0%2016.8826E This link should display a blue route along the white road. What I see, however, is a blue route which is NOT along the white road. So my question is: how do I use exact latitude/longitude co-ordinates to display an accurate route on a static map using the API? Thanks for your help folks. -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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/google-maps-api?hl=en.
