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

Uploaded Source

Built Distributions

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

Uploaded Python 3

mapbox-0.12.0-py2-none-any.whl (19.2 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for mapbox-0.12.0.tar.gz
Algorithm Hash digest
SHA256 9776f48607594f327692474ecd92437339b8fef5b0941719376a169b9f0d47f1
MD5 3db03616622727d6de07292bdba4e728
BLAKE2b-256 ae89c9eca01bcba711def314d21c60597b0fac771d28975375b45534e56c9cbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mapbox-0.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 75b3a950c9ac1c2c6a33f8e7d57b3559758f1a301f13348b3da25a8d3ee50cd4
MD5 c3b1c0637547d1c9e855a98aacd51b6a
BLAKE2b-256 7365a595f898a2a8297aa116ac3cd704a8d22a421a09d8af54ee08e6df7cb592

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mapbox-0.12.0-py2-none-any.whl
Algorithm Hash digest
SHA256 1fbeb184f79e7a9fbfd25addcc995c15f6f48b669a739fe55fcce049374945d9
MD5 e54257b44f0c245f140b18c18a6b66f4
BLAKE2b-256 4759e519e8eab9b7496b20d2bdf97164fde763b0291a976751a7004dcdf2f4c7

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