Hi there,
Im creating a map application that reads 2 groups of GLatLng
coordiates and calculates the best directions between them, currently
the code I have works with string address like :
setDirections("Ceannt Station, Eyre Square, Galway, Co. Galway",
"National University of Ireland, Galway (NUI Galway) University Road,
Galway, Co. Galway", "en_US");
But not for coordinates, this is what I tried :
var companyLatLng = new GLatLng(48.01565,0.202331);
var companyLatLng2 = new GLatLng(48.114767,-1.676331);
setDirections(companyLatLng, companyLatLng2, "en_US");
But it doesnt work,I know i need to convert these coordinates to
strings so they can be passed to this function, but how do I go about
doing that? For reference the setDirections method looks like :
function setDirections(fromAddress, toAddress, locale) {
gdir.load("from: " + fromAddress + " to: " + toAddress,
{ "locale": locale });
}
Thanks in advance,
Matt
--
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.