Skip to main content

Traccar Data Populator

Generating real data for development is troublesome, thats why better to create data populator for that purpose, this library. This library help us to populate data for device trip.

How to Use

Installation

Installation

pip install TraccarDataPopulator

Usage

To use this library you just need to provide traccar url for osmand and device_id

from TraccarDataPopulator.Populator import Populator
populator = Populator('http://demo.traccar.org:5055','testid2',5)
populator.populateData([[-8.2257,113.2190],[-8.2258,113.2190],[-8.1260,113.2190,10]])
populator.populateDataBetweenTwoLocationFollowingRoad(112.78532737805308,-7.38007105,105.4596077,-7.0249592)

Available Function

Populator(traccar_url,device_id,speed)

This function instantiate populator for specific traccar url, device id, and speed
#### setSpeed(speed)
This function set speed that sent to traccar server
#### setDeviceId(device_id)
This function set device_id that sent to traccar server
#### populateData([[lat,lon],[lat,lon,speed]])
This function send data to traccar by given input format lat,lon with speed as mentioned in setSpeed. Other format is lat,lon,speed which send data with custom speed
#### populateDataBetweenTwoLocationFollowingRoad(origin_lon,origin_lat,destination_lon,destination_lat) This function send data to traccar by following routes
#### populateDataFromFile(filepath)
This function send data to traccar by given flat file with each input perline.
-8.1257,113.2190
-8.1260,113.2190,10

Contact:

License

MIT License

Metadata

Release files for TraccarDataPopulator 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for TraccarDataPopulator 0.2
File Size Uploaded Provenance
TraccarDataPopulator-0.2.tar.gz 2.8 kB Without provenance Details

Release files / TraccarDataPopulator-0.2.tar.gz

Download URL TraccarDataPopulator-0.2.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4dd60e7a794b8abc155d24264488fc7688d0fef88b6ec16f76b41b39a7e21d7f
BLAKE2b-256 checksum
How to use checksums
2ca9d61d0159a50b4452f8c203d6fbfb9371baa08df73f2dc1d42af9ed298178
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.10.0 pkginfo/1.2.1 requests/2.26.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.9

Security for TraccarDataPopulator 0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page