Thankyou so much Larry. Once again, the people of this discussion board come to the rescue!
On Aug 23, 6:27 am, "geocode...@gmail.com" <geocode...@gmail.com> wrote: > On Aug 22, 3:12 pm, "geocode...@gmail.com" <geocode...@gmail.com> > wrote: > > > > > On Aug 22, 2:53 pm, Rob B <robert.benne...@gmail.com> wrote: > > > > Thanks for the reply Larry. > > > > var point1 = new GLatLng(location1[1],location1[0]); > > > var point2 = new GLatLng(location2[1],location2[0]); > > > > The above code has already been defined towards the bottom of the > > > script in "function place(lat,lng)", isn't that the same? > > > Nevertheless, I included it within the loop and it doesn't seem to > > > make a difference. (http://www.foodmilesmaps.co.uk/public_html/ > > > fmmtest.co.uk/didyoumeanv4b.html) > > > I have a working version locally, but probably won't be able to get it > > online until later today or tomorrow morning. > > > As I recall point1 and point2 needed to be global and not overwritten > > by the location1, location2 versions. > > > If that doesn't help, I will post my version as soon as I get a > > chance. > > http://www.geocodezip.com/foodmilesmaps_co_uk_didyoumeanv3b.html > (there was also a timing issue, you hadn't accounted for the fact that > geocoding is asynchronous, and you can't assume the results will > return in the order you request them) > > -- Larry > > > > > -- Larry > > > > Please note, the application works if two 'correct' addresses are > > > entered (e.g. New York and London). > > > > Sorry if i haven't fully understood what you're saying. > > > > Thanks again, > > > Rob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to Google-Maps-API@googlegroups.com To unsubscribe from this group, send email to google-maps-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---