I'm sure there is a limit, but I haven't run into it yet. All I did when 
developing this routine was to look at the Chrome URL string that was 
built by the Google Maps website. Essentially they just build a string 
that is combined with "to:"

Here's some pseudo-code  (not sure if this will come through the list okay)

lcStartPoint = "123 W Main, Yourtown, FL"
lcURL="http://maps.google.com/maps?f-d&source=s d&saddr=" + lcStartPoint

* build the string out for each stop along the way
for lnum=1 to numberofaddresses
         lcURL= lcURL + '+to:' + <<insert next address string here>>
endf

* finish with a return to our origin point
lcURL = lcURL + '+to:' + lcStartPoint

DECLARE INTEGER ShellExecute IN SHELL32.DLL ;
                 INTEGER nWinHandle, STRING cOperation, STRING 
cFileName, STRING cParameters,;
                 STRING cDirectory, INTEGER nShowWindow

lcRunWith = "chrome.exe"
lnError=ShellExecute(0, "", lcRunWith, lcURL,'',1)

The above pops Chrome open with a total route map that starts and 
finishes at the same place. Drivers usually don't want or need the 
actual "turn here" instructions, so the value is primarily in the 
distance and time estimates...at least for my needs.

Mike
> On 3/17/2011 2:29 PM, Mike Copeland wrote:
>> It does cause some long strings when building URLs, but long strings is
>> one of VFPs greatest strengths.
>
> Very true!  And I guess the length of the URL is no problem for the
> browsers.  I'm trying to remember if that was ever a problem?  Some
> limitation on GET or PUT or something?  Old memory.
>

_______________________________________________
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