Wednesday, May 02, 2007

As I've done in previous posts,  I've been using longitude and latitude from a GPS or other location service (like geo-encoding postcodes),  to be able to show locations on a map.

I've been trying to find a simple way to send a link to Live Maps with a pushpin,  but I think I have the definitive answer.

Here is the URL string I have come up with

http://maps.live.com/default.aspx?v=2&cp=LONGITUDEHERE~LATITUDEHERE&dir=0&alt=-1000&encType=1&lvl=17&tilt=-90&sp=an.PUSHPINLONGITUDEHERE_-PUSHPINLATITUDEHERE_PINNAMEHERE_PINDESCRIPTIONHERE

i.e

http://maps.live.com/default.aspx?v=2&cp=51.625128~-0.150448&dir=0&alt=-1000&encType=1&lvl=17&tilt=-90&sp=an.51.625128_-0.150448_Location%20Of%20N111HB

 

I found out this information here at -

http://help.live.com/help.aspx?mkt=en-gb&project=wl_local&querytype=keyword&query=qaf

Click Table of contents->Information For Developers->Build Your Own Url

 

Theme design by Jelle Druyts

Pick a theme: