maps for developers

The (former) official Mapbox blog. See mapbox.com/blog for current content.

Follow publication

Meet the new Mapbox API documentation

Mapbox
maps for developers
2 min readMar 4, 2016

By Lyzi Diamond

Today we’re introducing rewritten, redesigned, and expanded Mapbox API documentation. Drawing from hundreds of conversations with users, we created a new way to look at our APIs with consistent style across all services and prominent examples of integration with our SDKs & CLI.

Truthiness

geocoding-response

Nothing is more frustrating than following documentation to the letter but still getting errors. We spent weeks consulting with teams across Mapbox — from geocoding to directions to platform — making sure that every method, example, and token scope in our documentation is correct. Every endpoint, query parameter, and limit is referenced to the code that makes it work, and reviewed by the team that builds the product.

Striving for consistency

Documentation is more than a list of URLs, it’s a piece of English writing that thousands of people will spend hours reading. Little inconsistencies — like referring to JSON as keys or members or properties — add up to a lot of confusion, especially if you’re new to maps or technology. So we examined every word we use, and insisted on consistency. If you learn the lingo for one Mapbox API, you should be comfortable jumping into another one.

And now all the APIs have the same structure whether you’re looking at the Uploads API or the Styles API, you’ll know where to find methods, definitions, and examples.

And it’s not enough to be mechanically precise: we need to be friendly, too. We use content tests to avoid using words like ‘basically’ and instead spend our time explaining and assisting.

New examples

routing-example

We’re super excited about the Mapbox CLI that we launched last week, and our new JavaScript and Python SDKs. With mapbox on your command line or the library loaded in your application, it’s now much easier to try out an API method. We’ve added examples for every method in our API using cURL, Mapbox CLI, Mapbox JavaScript SDK, and Mapbox Python SDK.

Take a gander!

We think this newest documentation update is a huge improvement, but don’t take our word for it! Check out the documentation for yourself, and show us what you’re building by tweeting at @Mapbox.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Written by Mapbox

mapping tools for developers + precise location data to change the way we explore the world

No responses yet

Write a response