A Python 3 library built on the Mapillary API v4 to facilitate retrieving and working with Mapillary data
Project description
Mapillary Python SDK
Mapillary's official Python SDK for GeoSpatial Data
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
·
See Documentation
Table Of Contents
About
Mapillary's Python SDK provides an easy mechanism for accessing and retrieving information from Mapillary's web application.
For more information, please visit Mapillary and Mapillary's Blog.
Getting Started
To get started, simply install mapillary
by running,
pip install mapillary
A quick demo,
"""
Getting image coordinates from a nearby set of coordinates
"""
# Importing mapillary
import mapillary.interface as mly
# JSON import
import json
# Get image points close to in the given coordinates
data = mly.get_image_close_to(longitude=31, latitude=30).to_dict()
# Save the data as JSON
file_name = "get_image_close_to_1.json"
with open(file_name, mode="w") as f:
json.dump(data, f, indent=4)
You can check out all the implemented functionality from the demo.
Or you can check out the documentation!
Development
Formatting/Linting
To run the formatter black
, and the linter flake8
, run,
flake8 mapillary & black mapillary
Or, if you are on Linux, you can simply run,
make style
This runs the style
policy from the Makefile
.
Building package
To build the package, run,
python3 setup.py sdist bdist_wheel
To test out a local installation, run,
pip install -e .
Contributing
We welcome contributions! See CONTRIBUTING for details on how to get started, and our code of conduct.
Acknowledgements
- Christopher Beddow - for leading the project
- Saif Ul Islam - for developing the SDK under MLH fellowship
- Omar Ali - for developing the SDK under MLH fellowship
Links
Mapillary
Legal
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
Hashes for mapillary-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0af7b369dca8d360450cf5f659c594ed81de4bc3da8834ddc206c6d70541dc0a |
|
MD5 | ee3433f51402ab0a181a5040ee9a0b91 |
|
BLAKE2b-256 | 2c0dcde9707c85f756ab594155395af47f7042edf6d67cd7db641a00986ac2b1 |