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

Uploaded Source

Built Distributions

mapbox-0.13.0-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

mapbox-0.13.0-py2-none-any.whl (20.8 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for mapbox-0.13.0.tar.gz
Algorithm Hash digest
SHA256 3c62e944a42c26deb9e26cf70716d6980218ba9f2c562c037ef1ef7731539642
MD5 55d67181602bd9cbdf50b10a3948a3e6
BLAKE2b-256 fe315f09b6b48f1690c74639753080b2e393c42194ff8d4145e14e203531239d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mapbox-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a9a1a1e4d0f2026e9e20a91929b8aa09b4f53841a23a7cd5e41e3ac98b7918d2
MD5 8c800b789f98359f5f44905dda884fea
BLAKE2b-256 24844ad29312e9cb7a2f2da616d4d453a9c04a939120794350ddd63adc783be5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mapbox-0.13.0-py2-none-any.whl
Algorithm Hash digest
SHA256 facfda446fb35a571ac355a9cad6bdf3746af5cc67036b36e56445e5b2683122
MD5 147bdb620361634628e7cf0dd2e5c175
BLAKE2b-256 18fa9eb630bd12db53786a5bc4458eec12ee40eedbb156d21d73e0b9b884c946

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