Log in
Hot & Trending on FMT

FileMaker Go 15 - GPS Location of Picture

Featured FileMaker Go 15 - GPS Location of Picture

When taking a picture in FileMaker Go, the GPS attributes (longitude and latitude) are empty, as iOS does not have a way to access the GPS information directly.  However, if you take a picture with the Camera app, the picture is stored in the Photos app, and when you then Insert the picture from the Photos app into FileMaker Go, the GPS attributes are then available.

WORKAROUND:

Create a script that allows you take a picture, and then immediately use the LocationValues (or Location) function to capture the latitude and longitude.  For example, assuming you have a Container field named "PICT" and a Text field named "GPS", the following script will take a picture in PICT and then put the latitude and longitude values in GPS:

   Insert from Device [ Table::PICT ; Type: Camera ; Camera: Back ; Resolution: Full ]
   Set Field [ Table::GPS ; LocationValues ( 100 ; 10 ) ]
   Commit Records/Requests [ ]

If you want to put the latitude and longitude into separate fields, create two additional fields "LAT" and "LONG".  Then, change the script to:

   Insert from Device [ Table::PICT ; Type: Camera ; Camera: Back ; Resolution: Full ]
   Set Variable [ $latlong ; LocationValues ( 100 ; 10 ) ]
   Set Field [ Table::LAT ; GetValue ( $latlong ; 1 ) ]
   Set Field [ Table::LONG ; GetValue ( $latlong ; 2 ) ]
   Commit Records/Requests [ ]

If your GPS, LAT and LONG fields are blank, be sure to allow location access in FileMaker Go.  To turn on location access go to the iOS home screen, tap Settings, scroll to the bottom and tap FileMaker Go, tap Location, and allow location access "While Using the App".

Keefer Rogers

Got FileMaker questions...get answers at the ORIGINAL FileMaker Forum with over 42,000 active members!

Whats with all the banner ads you ask! They really help us keep our site online...That's a hint and a reminder!

Website: www.filemakertoday.com/com/forum.php