Geolocation in FileMaker Go

FileMaker makes getting an accurate latitude and longitude from an iPhone or iPad super easy. Say you want to update a properties’ exact location in ProMaps when you’re on site: why not get it automatically from your device?

Here’s a video of this in action:

Implementing Geolocation in FileMaker Go

This is easily implemented by adding a small script to your solution. Here’s a screenshot of the script we’d add to ProMaps (the only thing specific to ProMaps here is the location field which could be any text field in your solution):

FileMaker Script to Update Geolocation on iPad

The most complex part of this script is formatting the returned value into the comma separated “latitude,longitude” value required for the gm_GeoLocation field value, so I’ve pasted the value for the Set Variable step on line 20 here:

Let ([

    latPrefix = Case ( Left ( $sc_Location; 1 ) = "-"; "-" ; "" );
    longPrefix = Case ( Middle ( $sc_Location ; Position ( $sc_Location; ","; 1; 1 ) + 2 ; 1 ) = "-" ; "-"; "" )
];
 
 latPrefix & LeftWords ( $sc_Location; 1 ) & "," & longPrefix & MiddleWords ( $sc_Location; 2; 1 )

)

Now, you can call this script from a new button placed on your property detail layout. Alternately, you could call it automatically when uploading a new picture to your property. To do this,  add the highlighted lines in the screenshot below to the “Process Image…” script in ProMaps.

Geolocation in FileMaker Go for iPad

Hopefully, this example helps make your workflow with ProMaps even smoother.

Demo and Help

If you’d like to try out ProMaps, which allows you to display your properties on a Google powered map, including filtering and routing features, please download a demo at our ProMaps product page.

If you’d like help customizing this mod, or creating other mods like this, feel free to contact us and we’ll get you on the schedule.

Featured Posts

Follow Along

Stay up to date with the latest news & examples from SeedCode

Leave a Reply

Your email address will not be published. Required fields are marked *

Check out some of our other posts ...

Comments in FileMaker Calendar

Highlight Notes and Comments in Your Calendar

Inline Notes in DayBack Calendar The latest DayBack extension adds an icon to your events when there is a comment present that matches your criteria. You can

Closed Through the New Year

SeedCode is closed for our holiday break from December 19th through the end of the year. We’ll have folks available in case of emergencies and

COMPANY

FOLLOW ALONG

Stay up to date with the latest news & examples from SeedCode

© 2023 SeedCode, Inc.