termux / termux/termux-api

promote efficiency for termux-location

Open
#427 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
4.3k
Forks
920
PR merge metrics
No merged PRs in 30d

Description

Feature description

i really like enjoying termux-location function. i do the test in the outdoor ,find it's take a long time( about 2 seconds) to Get the GPS info when run the function termux-location. is there any improvement to promote efficiency for getting the GPS data every second when call the function in the loop? Does the termux-location have the following steps when call the function: step1: active gps step2:get the gps data step3: deactive gps. That is the reason why take a long time?

Reference implementation

Have you checked if the feature is accessible through the Android API?
Do you know of other open-source apps that has a similar feature as the one you want? (Provide links)
https://github.com/mendhak/gpslogger/releases

i find this app could record gps every second.

Contributor guide

No contributing guide indexed for this repository

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 with the termux-location command and trace how its Android location request is handled across repeated calls in a loop. Compare the behavior with GPSLogger's one-second recording, which the issue links as a reference. Done means establishing a faster recurring GPS retrieval approach while preserving the command's existing output and behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
cli, mobile-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.