> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/locations/_get.md).

# \_get

Fetches all Locations.

### Parameters

None.

### Example

```
FM_api('Locations_get');
```

### Result

#### On Success

An array of Locations. For example: {\['id':'1','name':'Location One','lat':'54.2026','lng':'-6.3295','address':'A28,\nCloghanramer,\nNewry,\nCounty Down,\nNorthern Ireland,\nBT35 6QJ,\nUK','user\_id':'0','customer\_id':'1'],\['id':'2','name':'Location Two','lat':'23.4567','lng':'-10.5019','address':null,'user\_id':'0','customer\_id':'0']}

### On Failure

If the user is not logged in: {'error':'no logged in'}
