How far is it? About 15 minutes. Understanding the Mapbox Isochrone API
Featured speakers
Featured host
About this episode
This is the first installment of a three-part series about Mapbox tools for logistics. Learn about what isochrones are and how to use them. Follow along with a hypothetical local business delivering their goods during shelter-at-home. The first thing they need to do is define their service are and know whether an address is inside it or not. In this live-coding session, we’ll retrieve an isochrone around the business, visualize it on the map, and then use it to check whether it contains an address location.
You’ll learn how to...
- Retrieve an isochrone GeoJSON from the Mapbox Isochrone API
- Easily add an address search control to the map
- Compare the address location and isochrone using Turf.js
Code-along resources
1. If you're coding along, here are John’s gists for ‘before’ and ‘after’.
2. Here’s a live demo using that code – go ahead and make your own!
3. Documentation for the Mapbox Isochrone API.
4. Check out our Isochrone API Playground.
5. Learn how to add a geocoder (search box) to your app.
6. Someone asked for an "isochrone-on-click" example.
7. Blog posts on Isochrones: It's about time | Building with Isochrones