# getGeoLocation

The Result looks like this:

```
   coords
      accuracy: 33
      altitude: null
      altitudeAccuracy: null
      heading: null
      latitude: 51.073834399999996
      longitude: 6.0768204
      speed: null
   timestamp: 1557477072518
```

### Example Usages

```javascript
   let myGeoLocation = await brixxApi.getGeoLocation();
   console.log(myGeoLocation.coords.latitude);
   console.log(myGeoLocation.coords.longitude);
```

To Visualize a geo location in google maps, see this documentation(<http://www.joerg-buchwitz.de/temp/googlemapssyntax.htm>) for possible url parameters, You could use the following commands in an event:

```javascript
   let myLocation = await brixxApi.getGeoLocation();
   window.open("http://maps.google.de/maps?q=" + myLocation.coords.latitude + "," + myLocation.coords.longitude,'_blank');
```


---

# 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://brixxbox.gitbook.io/brixxbox-documentation/client-api-reference/functions/getgeolocation.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.
