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.



Comments

17 responses to “Get Longitude and Latitude from Bing Maps”

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

  2. Hey thanks, man!

  3. Jasmine

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

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

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

  6. This has stopped working for me.

    Seeking location of but not getting any response from Bing.

  7. [argh]

    This has stopped working for me.

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

  8. Works fine for me: (37.040433507600035, -121.85538016715412)

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

  10. chetan

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

  11. Hi,

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

  12. Robert

    Hi,

    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,
    Rx

  13. Sri Vineeth

    No more scripts needed !!!

    just right click after selecting the place you will get the lat and long info and you dont even want to copy manually its auto copied after a single click

  14. Hello, it is 202 nowadays but I would love to ask you for an update. Google Maps are a paid thing now so naturally, people flock to free alternatives. Will that LONG and LAT java plugin and script also work for free maps?

  15. Hi Phil, this was a solution for Bing maps, not Google. It is obsolete, however. If I type an address into Bing maps, the left hand pane shows the longitude and latitude coordinates in plain text. No tricks needed!