Jan,
 
Here is a snippet of code I use to open a Google map with directions contained 
in the vFrom and vTo variables, each formatted as: 111 Main St, City State Zip. 
I collect the From and To addresses using a form which has buttons with Google 
and MapQuest options.
 

 
The code below is for Google
 
RECALC VAR vFrom, vTo
 
SET VAR vTo = (SRPL(.vTo,', ',',',0))
SET VAR vTo = (SRPL(.vTo,',','+',0))
SET VAR vTo = (SRPL(.vTo,' ','+',0))
 
SET VAR vFrom = (SRPL(.vFrom,', ',',',0))
SET VAR vFrom = (SRPL(.vFrom,',','+',0))
SET VAR vFrom = (SRPL(.vFrom,' ','+',0))
 
-- This section is for Google Maps
-- ----------------------------------------------------------------------------
SET VAR vpart1 TEXT = +
'http://maps.google.com/maps?saddr='
SET VAR vhtml TEXT = (.vpart1 + .vFrom + '&daddr=' + .vTo)
-- ----------------------------------------------------------------------------
 
--The next line will open the default Internet Browser
LAUNCH .vhtml
CLEAR VAR vhtml
RETURN
 
Your default browser will open with the goggle maps with directions from the 
address in vFrom to the address in vTo; you could modify it to open the Google 
directions in a Web Browser within the form. Users use it to print direction to 
a job site or to a vendor; very simple and very helpful
 
Javier,
 
Javier Valencia, PE
O: 913-829-0888
C: 913-915-3137
 
From: [email protected] [mailto:[email protected]] On Behalf Of 
jan johansen
Sent: Friday, April 26, 2019 3:57 PM
To: [email protected]
Subject: Re: [RBASE-L] - Google Maps
 
Never mind.
I just parse the address to see what Google was doing.
 
Have a great weekend.
 
 
  
From: "jan johansen" <[email protected]>
To: [email protected]
Date: Fri, 26 Apr 2019 13:03:42 -0700
Subject: [RBASE-L] - Google Maps
  
All,
 
Looking for a shortcut.
Has any passed an address to Google Maps?
 
TIA,
 
Jan
 
--
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
-- 
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

-- 
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to