maps for developers

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

Follow publication

Support for Arabic and Portuguese in Mapbox Streets

By Lukas Martinelli

Explore the Map

Mapbox Streets now supports Arabic and Portuguese, making our maps more accessible to 300 million internet users, and contributing back to Wikidata and OpenStreetMap.

Explore our Arabic map

Our process

Adding support for new languages requires coordination across Mapbox GL, Wikidata, and OpenStreetMap long before they end up in our maps.

In order to support new languages we have to:

Extend coverage

OpenStreetMap provides 710,000+ features tagged with a Wikidata ID. Linking map features to their corresponding Wikidata knowledge gives us access to much more information, including languages. We use these links to source new translations for important features and contribute these translations back into Wikidata. Leveraging Wikidata as a verifiable resource also retains cross-team consistency, meaning both our cartography and geocoding teams can rely on the same data source.

Whether something is important enough to be translated can be derived from different OpenStreetMap tags, i.e. key:population, number of translated name tags, or spatial attributes like covered area. We also match OpenStreetMap with Natural Earth data to find even more labels worth translating.

Implementation

Adding data to vector tiles means our clusters will regenerate more than 700 million map tiles. We always ensure the new batch of data doesn’t negatively impact rendering, performance, or latency of our users.

To add language fields to our vector tiles, we extend our PostGIS based rendering stack with queries for
additional name fields in our localized label layers.
We also look for common translation quirks such as single/double quotes, apostrophes, text in parentheses, articles, and other
problematic patterns in labels we’ve seen over the years.

Expect to see many more internationalization features in the coming months. We plan to make our maps more globally accessible, allowing developers building with Mapbox greater reach into fast-growing markets. Stay tuned!

Join us and push maps to the next level

The cartography team is on the forefront of digital mapping. We push the limits in leveraging and curation of open source data in hopes to build the largest spatial map of human knowledge ever created through our processing pipeline.

If you love working with OpenStreetMap, GIS tools, and coming up with technical solutions, join the Mapbox cartography team.

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