nextcloud / nextcloud/maps

can an API endpoint be added for latest device position?

Open
#692 0 comments 4 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.