# EXT\_GPS\_GetCoordinates

Function to get the coordinates of the current location.

*Input parameters*:

* inTimeout – Timeout in seconds to wait for the coordinates;

*Output parameters*:

* outResultCode – Return code: 1 – Coordinates obtained / 0 – Error getting coordinates;
* outErrorMessage – Error message if any error occurred getting the coordinates;
* outLongitude – Longitude of the current place;
* outLatitude – Latitude of the current place;
* outAltitude – Altitude of the current place;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.sysdevmobile.com/mss-extensibility/mss-5.0/untitled-1/gps/ext_gps_getcoordinates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
