The Original Filemaker Community - Forum
FileMaker News | FileMaker Tutorials | FileMaker Videos

Password protection and security…

FileMaker Go 15 – GPS Location of Picture – FileMaker Today


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

Comments are closed.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

Privacy & Cookies Policy