Get the current location of the user in the form of latitude and longitude.
Upon execution, this action retrieves the device’s location where the target Kintone app is open.
The accuracy of the obtained position depends on the equipment. If the app runs on a smartphone with GPS, the data is obtained with GPS accuracy. However, if it runs on a PC without GPS, the accuracy will be significantly lower than on a device with GPS.
The obtained latitude and longitude are used in the formula as follows:
= $1
The example above is $1; however, if the action number for “Get User’s Location” is 2, it should instead be written as “= $2.”
For example, you can set this form “= $1” in the “Address or Latitude/Longitude” of “Show Map at Spacer” or “Add Marker to Map.”
It is also possible to obtain latitude and longitude separately. Write the latitude as [0] as follows:
= $1[0]
The longitude is written as [1] as follows:
= $1[1]
There are no parameters to be set.
If the device’s location information function is turned off or if obtaining it from the app is not permitted,
User denied Geolocation
is displayed in an error message.