On May 21, 12:02 pm, simonDev88 <[email protected]> wrote: > Okay so it half works. (testing as we speak) if i redifine the map in > the button click event, that way the entire map reloads with the new > route planned on it. > Is this the best way of doing it, or can i clean up the code a bit by > passing the variables around a bit? > > Also does googlemaps not pick up every location?, If i type in 2 > locations. For e.g "speldhurst" and "epsom" i get a route planned out > for me between the 2. > If i then type "reading" and "london" I get a grey screen where the > map used to be. Is this because google maps cannot find the specified > place?
No. It is because if you just type "reading" GDirections guesses reading, PA http://www.geocodezip.com/example_geo2.asp?addr1=reading&addr2=london&geocode=1&geocode=2 and is unable to generate driving directions from Reading, PA in the US to London in the UK. If you use "reading, UK", it works: http://www.geocodezip.com/example_geo2.asp?addr1=reading,%20UK&addr2=london&geocode=1&geocode=2 -- Larry > because reading is a major town and london is a major city, so surely > it would be on googlemaps? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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 -~----------~----~----~----~------~----~------~--~---
