Getting address or location from Google Maps?

If you have the full map at the tip of your fingers, you can right-click on any location and get "Directions From Here" or "Directions To Here", which populates the from/to box with Google's nearest approximation of where you clicked.

You can also use "What's Here" to set a marker, which will have a associated lat/long in the corner (but doesn't appear to find roads or addresses)


You have a street address, and wish to find it's Lat/Lon (reverse geocoding)

  1. Turn on the LatLong ToolTip in the Google Maps site. (Details below).

now either...

  1. Search for the address in google maps. Hover the mouse over the marker that shows the location you want. alt textalt text -- OR --
  2. Use the google maps geocoding api for reverse geocoding. Eg. http://maps.google.com/maps/api/geocode/json?address=34.0703,-118.3981&sensor=false --OR--
  3. Search for the Lat/Long in the google maps search.alt textalt text

. .

You have a Lat/Long and wish to find the (nearest) address (geocoding)

  1. Use the google maps geocoding api.

a) Json result: http://maps.google.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=false

b) Xml result: http://maps.google.com/maps/api/geocode/xml?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=false

. . .

How do I turn on the LatLong Tool Tips?

alt text

alt text

alt text


Just drag the marker in the official v3 google maps api example

http://gmaps-samples-v3.googlecode.com/svn/trunk/draggable-markers/draggable-markers.html

If you use FireFox you can use Google Maps and this snippet of javascript code and create a bookmark.

("http://www.google.co.uk/search?q=",gApplication .getMap().getCenter()));

[can be google.com, .ca , .co.za etc]

note: this only gets the centre of the map latitude and longitude the more zoomed in the higher the accuracy

See

http://mapperz.blogspot.com/2007/02/return-latitude-and-longitude-fast.html

for full instructions on creating a bookmark.

Another useful one is when you select an address (as you would copy and paste)

javascript:void((function(){var%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('src','http://www.bookmaplet.com/scripts/bm.js');document.body.appendChild(e)})())

*just replace this code as above and create another bookmark.

Tags:

Google Maps