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.


14 comments

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

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

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

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>