On Jul 25, 3:03 am, Matt McGrath <[email protected]> wrote: > 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
Works for me: http://www.geocodezip.com/example_geo2.asp?addr1=(48.01565,0.202331)&addr2=(48.114767,-1.676331)&geocode=1&geocode=2 As is explained in the posting guidelines, I can't/won't debug a code dump. Please provide a link to your map that "doesn't work". -- Larry >,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.
