3 Replies Latest reply on Jan 26, 2012 9:04 AM by philmodjunk

    Creating a script in Filemaker to plot multiple addresses

    skylarkyana

      Title

      Creating a script in Filemaker to plot multiple addresses

      Post

      I need a script that can plot a map of multiple addresses from a found set of records in a web browser.  I have found an old post that says it can give driving directions which I have included below (I would prefer to plot them rather than show driving directions), however, my script opens the first address and then opens another window that is a failed URL.  I am not sure what to use for "Set $URL" I am using "Set Variable URL"

       Can anyone help with this.

       

      An Open Map script should do the following:

       

      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