Skip to main content

A Python client for Mapbox services

Project description

https://travis-ci.org/mapbox/mapbox-sdk-py.png?branch=master https://coveralls.io/repos/mapbox/mapbox-sdk-py/badge.png

A Python client for Mapbox web services

The Mapbox Python SDK is a low-level client API, not a Resource API such as the ones in boto3 or github3.py. Its methods return objects containing HTTP responses from the Mapbox API.

Services

  • Directions examples, website

    • Profiles for driving, walking, and cycling

    • GeoJSON & Polyline formatting

    • Instructions as text or HTML

  • Distance examples, website

    • Travel-time tables between up to 100 points

    • Profiles for driving, walking and cycling

  • Geocoding examples, website

    • Forward (place names ⇢ longitude, latitude)

    • Reverse (longitude, latitude ⇢ place names)

  • Map Matching examples, website

    • Snap GPS traces to OpenStreetMap data

  • Static Maps examples, website

    • Generate standalone images from existing Mapbox mapids

    • Render with GeoJSON overlays

  • Surface examples, website

    • Interpolates values along lines. Useful for elevation traces.

  • Uploads examples, website

    • Upload data to be processed and hosted by Mapbox.

Other services coming soon.

Installation

$ pip install mapbox

Testing

pip install -e .[test]
py.test

To run the examples as integration tests on your own Mapbox account

MAPBOX_ACCESS_TOKEN="MY_ACCESS_TOKEN" py.test --doctest-glob='*.md' *.md

See Also

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

mapbox-0.6.0.tar.gz (10.8 kB view details)

Uploaded Source

Built Distributions

mapbox-0.6.0-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

mapbox-0.6.0-py2-none-any.whl (17.2 kB view details)

Uploaded Python 2

File details

Details for the file mapbox-0.6.0.tar.gz.

File metadata

  • Download URL: mapbox-0.6.0.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mapbox-0.6.0.tar.gz
Algorithm Hash digest
SHA256 0c9d1afa568bedfbd13f95b045244f0ede76d5081c36a9c9ba3da66e90e6dc10
MD5 61991f6634c5bfa27080d1c4ca2b7519
BLAKE2b-256 f8c677770e706cd8cd4c9ed48d07de0f85cffe7acc3836d5ff3ca76418aeb7ec

See more details on using hashes here.

File details

Details for the file mapbox-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mapbox-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dfe8c8abf91f6af28ca34f22a6eb5ef267872b1dbfa483a751eb85498970e45f
MD5 2d44da0668cd0c574102257dd95e22a3
BLAKE2b-256 f337880a2b3f17086a0c5bad6ac81b89d1ecb69f46ef699c7083397a58b498f9

See more details on using hashes here.

File details

Details for the file mapbox-0.6.0-py2-none-any.whl.

File metadata

File hashes

Hashes for mapbox-0.6.0-py2-none-any.whl
Algorithm Hash digest
SHA256 b84a4f9486edaebe9dd16619984ad3969d4d4c4ae995f89faaf3114e2be74316
MD5 4fc58a1c5d6c8aad562aeb2371305f73
BLAKE2b-256 20b74c9b2a49869c621f6e631b2db2b50583b691e1b1dda2c64b3f9ff61a0f04

See more details on using hashes here.

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