Skip to main content

A Python 3 library built on the Mapillary API v4 to facilitate retrieving and working with Mapillary data

Project description

Mapillary Python SDK

Contributors Forks Stargazers Issues MIT License


LinkedIn Email Twitter Facebook

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

Links

Mapillary

Legal

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mapillary-1.0.0.tar.gz (87.0 kB view hashes)

Uploaded Source

Built Distribution

mapillary-1.0.0-py2.py3-none-any.whl (59.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page