0

I would like to move between two addresses in Google maps however i do not have the Geo coordinate latlng (latlng range) for this movement. I can select two addresses from a list which i can make the marker move between. Basically i want to show movement between two locations.

Is it possible that i can ask Google maps for a list of all location names on its map? Like in this example but i would like to provide a drop down list of all existing addresses in that country

devdar
  • 5,564
  • 28
  • 100
  • 153
  • 1
    Do you mean something like [this](http://www.geocodezip.com/v3_animate_marker_directions.html) – geocodezip May 09 '13 at 02:04
  • yes just like that however i want to randomly set the start and destination so may be store the start and destination in a database – devdar May 09 '13 at 02:12
  • I was looking at the code for that however like i say i want to find a way to select random paths A to C or F to A but i need to know what paths exist how can i assemble all that possible paths on the map in terms of actually address names not long lat coordinates – devdar May 09 '13 at 02:15
  • I dont know if there exist some function that can loop through the map and assemble location info like place name addresses and store them in lets say a database or do i need to manually store paths – devdar May 09 '13 at 02:17
  • What are you trying to do? Why would you want to save random paths? – geocodezip May 09 '13 at 02:22
  • well i did use an algorithm to off set lat long coordinates. I used the haversine formula, however when my markers move i get a blink effect while moving if you know what i mean. However i saw that example you send me and i liked the smooth path movement I realized and correct me if i am wrong but smooth movement wroks well for already defined paths. I am trying to simulate random paths yes but i want it to be along road paths – devdar May 09 '13 at 02:25
  • My algorithm allows movement anywhere which is ok but i have to do alot more work to prevent it form going off the map and i dont think i can address the blinking effect unless i generate a random path thats long enough and attempt a smooth transition – devdar May 09 '13 at 02:27
  • Why would it need to be along a road? [example on a polyline from xml](http://www.geocodezip.com/v3_animate_marker_xml.html) – geocodezip May 09 '13 at 02:27
  • let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/29627/discussion-between-dev-darin-and-geocodezip) – devdar May 09 '13 at 02:28
  • You still haven't explained _why_ you want to do this, which makes it really difficult to answer your question(s) [and you should really only ask one answerable question at a time] – geocodezip May 09 '13 at 02:29
  • ok sorry about that i will update the question – devdar May 09 '13 at 02:34
  • i updated the question to address one concern – devdar May 09 '13 at 02:37
  • @geocodezip my question was modified can you assist? – devdar May 14 '13 at 02:22
  • 1
    The answer to your question as not formulated is no. You can't as Google Maps for a list of all location names on its map, that is against the terms of use. You can get lists like that from Open Street Maps and/or geonames.org (an in the US from the census tiger data), it just might not be consistent with the map displayed by Google. – geocodezip May 14 '13 at 02:33
  • @geocodezip you can post this as your answer so i can accept it – devdar May 14 '13 at 02:37

1 Answers1

1

The answer to your question as formulated is no. You can't use Google Maps for a list of all location names on its map, that is against the terms of use. You can get lists like that from Open Street Maps and/or geonames.org (an in the US from the census tiger data), it just might not be consistent with the map displayed by Google.

geocodezip
  • 158,664
  • 13
  • 220
  • 245