I can't speak specifically to maps.google, but the directions API
tries to put the end point(s) of the route at the street in front of
"your house." So if you provide the LatLng of the center of a large
shopping center as the destination, the route will actually end on the
street "in front of" the shopping center.

In your example, your destination LatLng is in the middle of a vacant
lot.  (I'm not sure where your LatLng came from, but you can try
dropping a Marker there to see.)  It looks like the directions service
is trying to find the nearest "real" address, which looks to be the
office building labelled "Bunzl Verpakkingen Arnhem BV."  And that is
where it ends up.

In maps.google, it looks like it is accepting the parking lot (car
park) at the end of Delta (Street) as an acceptable destination.
(This is not too surprising; the geoCoding API in maps.google is
different from the API because the API looks only for addresses,
whereas maps.google includes a Places function as well, so the results
are often different.)

If you assure your destinations are real places, you will probably get
more consistent results between the API and maps.google.com.

- Jeff

On Dec 1, 4:14 am, Alexander <[email protected]> wrote:
> Hi all,
>
> I will summarize what the problem is. I have to draw TWO different routes
> in the same map. This is afaik only possible by using the Google Maps API.
> But using that gives me less accurate positions. When I draw the route
> directly in maps.google.com by filling the querystring it will give me the
> exact positions.
>
> For 
> example:http://maps.google.com/maps?saddr=51.979362,5.980457&daddr=51.979402,...http://www.stuurhut.nl/google/map.html?origin=51.979362,5.980457&dest...
>
> The map and directions in the second url are made with help of the API.
>
> Can somebody explain this? Or can somebody give a solution?
>
> Thanks in advance!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to