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:
- Visit https://www.mapillary.com/dashboard/developer, go to 'developers',
- Then, click 'register application', register a new application (read access is enough),
- Finally, copy the 'Client Token'
Then, pass the token as an argument to the set_access_token()
function.
Example (Read image)
from simple_mapillary import Image, set_access_token
import cv2
token = ""
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.2.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for simple_mapillary-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c935e12fa118ab66ad1d9134ad0c4c26650c7b1a2d941300a02a27e7e7e7b246 |
|
MD5 | b2a17948f96c56041e2cde453faf6840 |
|
BLAKE2b-256 | d2fd7ace680deb5d6d1d0dff10d32c1c80c04e31f59affdafdf123485df7e498 |