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.1.tar.gz (87.1 kB view details)

Uploaded Source

Built Distribution

mapillary-1.0.1-py2.py3-none-any.whl (59.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file mapillary-1.0.1.tar.gz.

File metadata

  • Download URL: mapillary-1.0.1.tar.gz
  • Upload date:
  • Size: 87.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for mapillary-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c50e4add0d398dfa1a58b62eeb2dd1a195c0d14e7a688cc252d93afd54f576dd
MD5 bb5ba26f8b5e2317d247aa7142f4bafe
BLAKE2b-256 0ec54796def44f8dc7a4420c9ef4b7c43cec2960324490814aa29a1a33df50ea

See more details on using hashes here.

Provenance

File details

Details for the file mapillary-1.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: mapillary-1.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 59.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for mapillary-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3c6eced93be5ccaa940ed20d8143655ee0244700db10b127e6e3b447557e4a2c
MD5 b8de5b90ca2543cf408bdd00cfd0bc25
BLAKE2b-256 7e571a998b02d47309c14fc1a8d8b2a097a4a34b1964c0b442f7c45a23478d75

See more details on using hashes here.

Provenance

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