Get Longitude and Latitude from Bing Maps

To get longitude and latitude coordinates from Bing Maps, follow these steps:

  1. Position the map center on your point of interest
  2. Type this into your web browser’s address bar:
    javascript:map.GetCenter()
  3. Hit enter or click an appropriate button to query the address

If you are using a browser with a lot of built-in security roadblocks like Internet Explorer, you may have to acknowledge security warnings before javascript code will execute.


11 Comments so far

  1. Jeremy on December 22nd, 2009

    You beauty!

  2. Jeremy on February 5th, 2010

    Optionally, if you have Firebug installed in Mozilla Firefox, go to the Script tab, then in the right pane and where it says “New watch expression…” enter “map.GetCenter()” and press enter or go to the Console tab, and in the right pane enter the same and hit Run.

  3. Corey on February 17th, 2010

    Hey thanks, man!

  4. Jasmine on April 29th, 2010

    Thank you very much, it’s really helpful for me :)

  5. Verne on September 22nd, 2010

    What if you want lat & long in hours:minutes:seconds? Any suggestions

  6. Corey on September 22nd, 2010

    Verne,

    If you want the converted coordinates, you’ll have to learn how to make the conversion. This page is about getting the point from Bing maps.

  7. Syme on October 18th, 2010

    This has stopped working for me.

    Seeking location of but not getting any response from Bing.

  8. Syme on October 18th, 2010

    [argh]

    This has stopped working for me.

    Seeking location of
    http://tinyurl.com/2ve2nf2
    but not getting any response from Bing.

  9. Corey on October 18th, 2010

    Works fine for me: (37.040433507600035, -121.85538016715412)

  10. Nasser on December 7th, 2010

    this is a response to Verne’s question (that was unfairly suppressed):

    Well you probably mean Degrees:Minutes:Seconds…

    lets do it for lat = 37.040433507600035

    Degrees = floor(lat) = 37
    x = (lat – floor(lat))* 60
    minutes = floor(x) = 2
    y = (x-floor(x))*60
    seconds = floor(y) = 25.

    So 37.040433507600035 = 37:02:25

    You would probably want to round the seconds. If so you need to call round(y, 0) (instead of floor(y))which will return 26.

    hope this helps.

  11. chetan on June 17th, 2011

    I get this result–> Location[0,0]

Leave a reply

 

Thanks for reading!

Sign up for email updates: