On Wed, Jan 6, 2010 at 10:12 AM, Peter Hart
<[email protected]> wrote:
> Hi Stephen,
>
> What I really want to do is to create a URL which takes you to Bing Maps and 
> has the map reference i.e. Latitude and Longitude in the URL so that the 
> default browse opens up zoomed into the location supplied.

Here's something I use in a C# App, but it should be pretty easy to
convert to VFP:
//pl.X and pt.Y are decimal degrees
            string mapUrl = string.Format(urlTemplate, pt.X, pt.Y);
            System.Diagnostics.Process.Start(mapUrl);

If you are unfamiliar with .Net, the string.Format will replace "{0}"
with pt.X  and "[1}" with pt.Y.

I use the following strings (beware of linewrap!):

Google: "http://maps.google.com/maps?q={1},%20{0}&amp;t=h&amp;z=17";
Bing: 
"http://bing.com/maps/default.aspx?cp={1}~{0}&amp;style=h&amp;lvl=16&amp;where1={1},%20{0}";

MSFT has a nice help page at
<http://help.live.com/Help.aspx?market=en-US&project=WL_Local&querytype=topic&query=WL_LOCAL_PROC_BuildURL.htm>
 aka <http://preview.tinyurl.com/ybzq6dp>

HTH

dt

-- 
Dave Thayer
Denver, CO

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to