can an API endpoint be added for latest device position?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 598
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
Apparently, PhoneTrack has a /apps/phonetrack/api/getlastpositions endpoint, which allows others to track devices directly tracked by PT. For example, Home Assistant can use this to do its own tracking.
Can such an endpoint be added to Maps? It would be nice if I wouldn't have to go through PT, since Maps already tracks my phone.
I would imagine something along the lines of GET /api/{apiversion}/latest_points to return all and GET /api/{apiversion}/latest_points/{id} for a specific one.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Maps API entry points and existing device-tracking data, then compare the proposed GET /api/{apiversion}/latest_points and /latest_points/{id} routes with the PhoneTrack endpoint. Done means both routes are implemented with a defined response for all devices and for a specific device, but the issue does not specify the response schema or API version details.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api, backend-api-design
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100