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 ...

New Longer Timescales for DayBack

Resource Scheduling Swimlanes You can now extend the pivoted scheduling view in DayBack to show items by week instead of solely by day. This lets

FileMaker Summer Camp – Recap

Unconference Sessions If you missed Pause in October, here’s a look at the sessions that attendees hosted. All the sessions are listed in this post

Subscribe to DayBack Updates & Status

Subscribe to DayBack’s latest features and example code at our new site: updates.dayback.com You’ll find new features and documentation, as well as the status and

COMPANY

FOLLOW ALONG

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

© 2023 SeedCode, Inc.