To get longitude and latitude coordinates from Bing Maps, follow these steps:
- Position the map center on your point of interest
- Type this into your web browser’s address bar:
javascript:map.GetCenter()
- 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”
You beauty!
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.
Hey thanks, man!
Thank you very much, it’s really helpful for me :)
What if you want lat & long in hours:minutes:seconds? Any suggestions
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.
This has stopped working for me.
Seeking location of but not getting any response from Bing.
[argh]
This has stopped working for me.
Seeking location of
http://tinyurl.com/2ve2nf2
but not getting any response from Bing.
Works fine for me: (37.040433507600035, -121.85538016715412)
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.
I get this result–> Location[0,0]
Hi,
What if I do not know where I am?
Do you have an example where to GPS tells you where you are?
Thanks
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
http://www.doogal.co.uk/VELatLong.php
Worked for me!
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
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?
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!