Navigation Menu

Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Tilesets API #152

Open
perrygeo opened this issue Jan 23, 2017 · 2 comments · May be fixed by #273
Open

Tilesets API #152

perrygeo opened this issue Jan 23, 2017 · 2 comments · May be fixed by #273

Comments

@perrygeo
Copy link
Contributor

Still in preview: https://www.mapbox.com/api-documentation/#tilesets

@gamb
Copy link

gamb commented Jun 2, 2017

When updating a Dataset via datasets.update_feature(), I need a way to propagate my changes to Tilesets automatically. Is this something the Tilesets API will allow for? Can't see a way to achieve this at present.

@perrygeo
Copy link
Contributor Author

@gamb The Tilesets API is read-only and will only provide metadata about the tileset itself. But you can export a Dataset to a Tileset using the Uploader.create method and a custom URI:

service = mapbox.Uploader(access_token=access_token)
uri = "mapbox://datasets/{username}/{dataset_id}".format(
    username=tileset.split('.')[0], dataset_id=dataset_id)
res = service.create(uri, tileset, name=tileset_name)

Hope this helps.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Development

Successfully merging a pull request may close this issue.

3 participants