> 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/asset/_getlocation.md).

# \_getLocation

Returns the current location of an Asset.

### Parameters

#### id

The ID of the Asset.

### Example

```
FM_api('Asset_getLocation', ['id'=>'30001']);
```

#### On Success

```
{"location_type":"1","location_id":"90002","name":"Newry Area","latitude":"0","longitude":"0","street_address1":"","street_address2":"","town":"","county":"","postcode":"","country":"","city":"","state":"","location_type_name":"Customer"}
```

#### On Failure

If the "id" parameter is not set or has an integer value less than 1:

```
{"error":"missing or invalid parameter: id"}
```

If the "id" parameter does not match the ID of an existing Asset:

```
{"error":"asset does not exist"}
```
