Python module used to generate ov2 poi (point of interest) files
Project description
pyov2
This module can serialize and deserialize in ov2 binary format. With special thanks to @mikewatt for providing guidance.
ov2 format
ov2 is a point of interest file, also referred to as poi file. These files store (as the names says) points of interest based on their wgs84 coordinates and label. You can load ov2 files in tomtom devices to navigate to your own points of interest.
For more info on the format read this page.
Usage
You can use ov2 and file submodules to handle ov2 format.
The ov2 module can serialize and deserialize ov2 binary format.
The file module can walk through an ov2 file using a callback.
And it can convert csv, write and read ov2 files.
Examples
Write list to ov2
from pyov2.file import list_to_ov2
poi_list = [
(5.77674, 51.65315, 'Moms house'),
(5.77643, 51.65312, 'My house'),
(5.77623, 51.65313, 'Mats house')
]
list_to_ov2(poi_list, 'houses.ov2')
Convert csv to ov2
from pyov2.file import ov2_to_csv
csv_path = "houses.csv"
ov2_path = "houses.ov2"
csv_to_ov2(csv_path, ov2_path)
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyov2-1.0.1.tar.gz.
File metadata
- Download URL: pyov2-1.0.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58f3227969569810b30b433d839912ae25b11088ef4ca201ac34fdda8e68eb7b
|
|
| MD5 |
48344c2d1fcec7affaf699d6c12a8046
|
|
| BLAKE2b-256 |
a285602fa61e87173590fd1d0cb933a05b603749fe8ad87748c3cc171965c7f0
|
File details
Details for the file pyov2-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pyov2-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef934e50a8f4f6e5838f59bc8fa7594a77d9ba254a1d6fd34f1b42cdcd82f239
|
|
| MD5 |
09f7b1e558104fb46387c6be40c35c26
|
|
| BLAKE2b-256 |
1f537fbefa97d5a6cf68a24107197591c7c78b672ea33bbd64a86f87ec6aa3ab
|