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.

  • Datasets examples, website

    • Manage editable collections of GeoJSON features

    • Persistent storage for custom geographic data

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' docs/*.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.12.2.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

mapbox-0.12.2-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mapbox-0.12.2.tar.gz
Algorithm Hash digest
SHA256 71bee81588be060a31e2771e43700962b6864058a31d3f3e42cdf3ae2b8ac4b7
MD5 3870eaffd6bae03218d3d5ffc3713ee5
BLAKE2b-256 5252687889354a4aa50e75eb37ab62164852177f45ecde8409c67abf2e4d51ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mapbox-0.12.2-py3-none-any.whl
Algorithm Hash digest
SHA256 94a01c4911a538686a20d60700fb531981945f8a31664a3fa1581e353d16ccd2
MD5 f0a74eedfe7f7a906e94bf1799fe8826
BLAKE2b-256 7250cc8c2fdffacfa8339c247173609180872b4e4d19d5731b123f935d62b2af

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