Thanks for the help, but somehow it still doesn't work. Feeling really
stupid right now ...
I got my first coordinate via the Geolocation API and the second one I
defined myself .. which might be the problem.
var latlng = new google.maps.LatLng(position.coords.latitude,
position.coords.longitude);
var latlng2 = new google.maps.LatLng(51.43545462624757,
6.770839691162109);
var d = computeDistanceBetween(latlng,latlng2);
In the head I replaced the former googlemaps src with this one:
src="http://maps.googleapis.com/maps/api/js?
sensor=true&libraries=geometry"
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.