# Identify a usual / longest parking location via API

## Question

Can we identify which place is the longest parking location for each device through API?

## Answer

There is no dedicated endpoint for "usual parking location".

However, you can determine it using trip data from the API.

Approach 1:

* Call `track/list` for a period (for example, a month).
* Compute gaps between one trip's `end_time` and the next trip's `start_time`.
* Use the previous trip end location as the parking point.
* The location with the longest gap is a likely main parking spot.

Approach 2:

* Take the last trip end location each day.
* The most frequent location is likely the usual parking spot.

## Linksss

* [`track/list`](https://www.navixy.com/docs/navixy-api/user-api/backend-api/resources/tracking/track/index#list)


---

# 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://navixy.com/docs/qna/apis/identify-a-usual-longest-parking-location-via-api.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.
