Get Map Distances Between Two Points

Version 2

     

    Script

     

    Compatibility
    Creator
    Mac OS X, Windows
    Todd Duell
    FMP 9, 10, 11
    Formulations Pro
    Web: No
    File Type: FP7
    Server: Yes
    FileSize: ~ .7 megabytes
    http://www.formulationspro.com

    Description

    Wouldn't it be great if you could identify your closest store or sales person within 5, 10, 25, 50, or 100 miles for you customer? What if I told you that you can accomplish this programming task and it didn't require a paid service or a ton of programming? All you have to provide is the from and to address. I bet you'd be totally stoked! This and more can be had by utilizing Yahoo's Geocoding API (i.e URL string) and the well known Great Circle Navigation Formula that is used by pilots to convert latitude and longitude between two points into nautical miles, kilometers, or miles.

     


    Code

     

    Sample Input

    Sample Output


    Developer's Notes

    See sample file for full demo and technical article.

     


    FileMaker Inc. provides this content on an “As Is” basis, without any warranty, and subject to the terms of the FileMaker Technical Network Agreement. FileMaker makes no representations and is not liable for any content or related information. You may use the content as part of your own solutions and for your customers, but you may not otherwise publicly distribute any content that you did not submit. ©2009-2011 FileMaker, Inc. All Rights Reserved. FileMaker is a trademark of FileMaker, Inc. registered in the U.S. and other countries.