This is a feature that can only be used with FileMaker GO on an iOS device such as an iPad or iPhone. Is this how you need to use this feature?
It doesn't work in FileMaker Pro on a computer or windows tablet.
Do you already have the long and lat, or are you trying to populate from an address?
If you are trying to populate from an address, you can look at this DevCon session:
Download and unzip the sample files. In the file marked "GeoLocation Multiple Points", there is a Script that uses a custom function that will take the current address and turn it into Long & Lat. You can attach this to a button on your PC. You can also use the other script to geocode all the addresses at once, but it didn't seem to do all the addresses, and I had to go thru the records that didn't geocode and use the first custom function.
Sorry was on vacation and couldn't check your response until now. Yes I will be using the Geo locations on an iOS device. I've got a script running right now that allows FileMaker Go to access the location services and obtain the information, but I can't figure out how to get it to display in a field.
When the "button" is pushed, it states "Location received, improving accuracy", and then that's it. So I know I have it accessing the location, I just can't get it to display the information. Does that make sense?
How did you set up the button?
Set Field can be used with this function as part of the calculated result setting to assign the current values to a field. The calculation can extract just one value or pull all of them into the field. Since this function returns a return delimited list of values, if you want the whole list, make sure that your field is tall enough to display all the values or use GetValue to extract a specific value from the list.
The image uploaded with this comment is a very simple "quick and dirty" test of the function. After testing it, it occurs to me that you might get issues if you request to small an accuracy and the device is unable to produce a value with that accuracy in a timely fashion. (There is also a time out parameter that could affect how long the system tries to produce the requested info.)
Thank you. Yesterday while playing with my script I did exactly that. I increased the field and all the values show now when I test. I am now on to trying to parse out some of the data as the listed in the help menu using the GetValue, but having a hard time getting that to work. All I need is LAT/LONG data, so I have changed from LocationValue which gives altitude, horizontal, etc. to Location, so I just need to get rid of the accuracy part. If I can t figure it out, I guess I can always shrink the field to eliminate that portion.
GetValue won't work with the Location function as there are no return separated values returned in that case. The lat and long values are separated by a comma.
But you can't "get rid of the accuracy part". You have to specify some accuracy value, though the time out setting is optional. The idea to the time out setting is that you can decrease the time out setting as a way to reduce the number of "fetches" and thus prolong battery life in your device. (Or so I am reading from the FileMaker help entry on this function...)