dbTalk Databases Forums  

Creating a script to open single/multiple addresses in google maps

comp.databases.filemaker comp.databases.filemaker


Discuss Creating a script to open single/multiple addresses in google maps in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Stan Walczak
 
Posts: n/a

Default Creating a script to open single/multiple addresses in google maps - 12-11-2009 , 10:30 AM






could you please help with the script.

Only last address is displayed in google maps... I'm missing other
addresses.
---------------------------------------------------------------------------------------------------------------------------
Sort the records according to the sort field

Set variable $URL to "http://maps.google.com/maps?d&saddr=" &
Substitute ( Address::Address; " "; "+")

[note: saddr is the start address]

Loop through remaining records...

Go to next record (exit after last)

Set $URL & "+to:" & Substitute ( Address::Address; " "; "+")

[note: +to: denotes all additional addresses]

End loop.

Open URL (No Dialog), $URL

Reply With Quote
  #2  
Old   
icedgar
 
Posts: n/a

Default Re: Creating a script to open single/multiple addresses in googlemaps - 12-11-2009 , 07:31 PM






On Dec 11, 8:30*am, Stan Walczak <stanw... (AT) gmail (DOT) com> wrote:
Quote:
could you please help with the script.

Only last address is displayed in google maps... I'm missing other
addresses.
--------------------------------------------------------------------------- ------------------------------------------------
Sort the records according to the sort field

Set variable $URL to "http://maps.google.com/maps?d&saddr=" *&
Substitute ( Address::Address; " "; "+")

[note: saddr is the start address]

Loop through remaining records...

Go to next record (exit after last)

Set $URL & "+to:" *& Substitute ( Address::Address; " "; "+")

[note: +to: denotes all additional addresses]

End loop.

Open URL (No Dialog), $URL
From what I can tell. It seems as if your are reassigning $URL again
at the end of your script which would only include the last address.
I think you need to set your variable to include itself again which
would include the looped information you created above it.

So this:
Set $URL & "+to:" & Substitute ( Address::Address; " "; "+")

would be:
Set $URL = $URL & "+to:" & Substitute ( Address::Address; " "; "+")

hope that helps.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.