Helium Positioning API
Project description
Helium Positioning API
Features
Prediction of the location of devices belonging to an organization in the Helium Console. Several different methods and models are available.
Installation
Developer install
The following allows a user to create a developer install of the positioning api.
pip install -r requirements.txt
poetry install
poetry shell
pip install git+https://github.com/emergotechnologies/helium-api-wrapper
Prerequisites
Before use, ensure that there is an .env
file in the root directory of the repository where the API_KEY
variable is entered (see .env.sample
). You can generate and copy the API_KEY
at https://console.helium.com/profile.
Usage
The service allows usage via command line interface or locally hosted REST interface.
CLI
Get Device Position
python -m helium_positioning_api predict --uuid 92f23793-6647-40aa-b255-fa1d4baec75d
Currently defaults to the "nearest_neighbor" model.
Advanced Requests
The location prediction command is
python -m helium_positioning_api predict --uuid 'your uuid' --model 'your model selection'
See the table below for a list of currently available models.
model | position estimation explanation |
---|---|
nearest_neighbor | location of hotspot with the best signal |
midpoint | point of equal distance from the two hotspots with the best signals |
linear_regression | trilateration with an linear regression distance estimator |
gradient_boosting | trilateration with a gradient boosted regression distance estimator |
REST-API
- Start local REST-API (default)
python -m helium_positioning_api serve
- Open Browser and navigate to
127.0.0.1:8000/docs
- Click on
predict_tf
path to drop down the endpoint details - Click on the
Try it out
button. - Fill in the
uuid
of your device and click on the buttonExecute
to get an estimation using thenearest_neighbor
model - You can see the location prediction response in the
Responses
section below.
The mapping of available models to paths can be seen in the table below.
model | path |
---|---|
nearest_neighbor | predict_tf |
midpoint | predict_mp |
linear_regression | predict_tl_lin |
gradient_boosting | predict_tl_grad |
Contributing
Contributions are very welcome. To learn more, see the Contributor Guide.
License
Distributed under the terms of the MIT license, Helium Positioning API is free and open source software.
Issues
If you encounter any problems, please file an issue along with a detailed description.
Credits
This project was generated from @cjolowicz's Hypermodern Python Cookiecutter template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file helium_positioning_api-0.0.2.dev1675767695.tar.gz
.
File metadata
- Download URL: helium_positioning_api-0.0.2.dev1675767695.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | afc4705a6bf8a078af1f708ca789d8bd52700ab9dfb1e761749d25ce5c5f4d79 |
|
MD5 | 485882ad442246ef0b289ecb3a12d045 |
|
BLAKE2b-256 | e09aa95e4c27f8fb0a661ee86ab3a1d6f9777d520fdce8eea4c8720c8925525c |
File details
Details for the file helium_positioning_api-0.0.2.dev1675767695-py3-none-any.whl
.
File metadata
- Download URL: helium_positioning_api-0.0.2.dev1675767695-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a64706b5280016e8ffaa0d9bd1c0adfdf56ba0f0f0929a08adfea52a08cd8e4d |
|
MD5 | 99caeb71cf405d3dbacab1b8445b0c3f |
|
BLAKE2b-256 | 0c282670c9ad2cb60cdf31225f534187a0889f65e955987dd765af9e77ee3453 |