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:
  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.


  1. Jeremy · December 17, 2009

    You beauty!

  2. Jeremy · December 17, 2009

    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 · December 17, 2009

    Hey thanks, man!

  4. Jasmine · December 17, 2009

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

  5. Verne · December 17, 2009

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

  6. Corey · December 17, 2009


    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 · December 17, 2009

    This has stopped working for me.

    Seeking location of but not getting any response from Bing.

  8. Syme · December 17, 2009


    This has stopped working for me.

    Seeking location of
    but not getting any response from Bing.

  9. Corey · December 17, 2009

    Works fine for me: (37.040433507600035, -121.85538016715412)

  10. Nasser · December 17, 2009

    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 · December 17, 2009

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

  12. Phill Seaman · December 17, 2009


    What if I do not know where I am?
    Do you have an example where to GPS tells you where you are?

  13. Robert · December 17, 2009


    seems like there is a new version, which does not support that request!!!

    Anyone knows an alternative way to get Lat/Long from Bing?

    many thanks,

  14. Freak-A-Droid · December 17, 2009