The script expects you to have a list of addresses as a found set of records. It loops down the records, building up the syntax of the URL with each record. It stores the URL as a variable, $URL, then opens that in a web browser. When I do it I tend to let the user stay within FM so I show the result in a webviewer.
The resulting page will show you the addresses as map pins, as well as giving directions. Note that you can only plot around 25 addresses, so if you want more you must break them into batches.
I'm also trying to plot multiple addresses for a found set of data. I want users to be able to search for services and then map the results. Using the example above, I created a script. The result is a script that never completes. If someone has figured this out, would they be willing to post the script?
IF the script never completes, you have a looping script that never exits most likely. In the original script posted at the beginning, Go to next Record was used with the exit after last condition set to exit the loop. If you are using the same script, make sure that you specify the exit after last option for go to record/request/page.