Skip to main content

Simplified Python library for accessing the Mapillary API.

Project description

simple-mapillary-python-sdk

Simplified Python library for accessing the Mapillary API. For a more complete library, check out the official mapillary-python-sdk.

Installation

pip install simple-mapillary

Or clone the repository and install it manually:

git clone https://github.com/ibaiGorordo/simple-mapillary-python-sdk
cd simple-mapillary-python-sdk
pip install .

Setup

First, you need to get an access token. To get one:

Then, you can either modify the __token__py file with your token or pass it as an argument to the simple_mapillary.set_access_token() function.

Example (Read image)

from simple_mapillary import Image
import cv2

# TODO: You can either set the token here or in the __token__.py file
# token = ""
# simple_mapillary.set_access_token(token)

image_id = "1200479493800436"
image = Image(image_id)

img = image.get_cvimage()

cv2.imshow('image', img)
cv2.waitKey(0)
cv2.destroyAllWindows()

Project details


Download files

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

Source Distribution

simple_mapillary-0.0.1.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

simple_mapillary-0.0.1-py3-none-any.whl (4.8 kB view hashes)

Uploaded 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