Returns the latitude of the user's last position.
1 system.user.getGPSLatitude
<system.user.getGPSLatitude code='code'/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Acode | string | User code. |
Returns | |
---|---|
Type | Description |
string | User's latitude. |
Example
Obtains the last latitude in which the user was by default.
Copy
<xsql-script name='system_user_getLatitude_sample1'> <body> <println> <system.user.getGPSLatitude /> </println> </body> </xsql-script>
If you do not pass a user code via the attribute code, the system returns the value related with the user which excutes the command.
Example
Obtain the latitude of a specific user.
Copy
<xsql-script name='system_user_getLatitude_sample2'> <body> <println> <system.user.getGPSLatitude code='bpr'/> </println> </body> </xsql-script>
Informing the attribute code, the system returns the value related with the specified user code.