On 3/17/2011 4:02 PM, Mike Copeland wrote: > 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
Very nice...thanks for sharing! -- Mike Babcock, MCP MB Software Solutions, LLC President, Chief Software Architect http://mbsoftwaresolutions.com http://fabmate.com http://twitter.com/mbabcock16 _______________________________________________ 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.

