Shiny Contest Submission: Interactive isochrone mapper for anywhere in the world!

You heard that right anywhere in the world!

What is an isochrone you ask? The prefix "iso", draws its meaning from Ancient Greek meaning "same" or "equal". Each line on an isoline map shares the same value. An isochrone is a special type of isoline that visualizes travel time. This application shows lines of equal travel time or equal network distance for mode choices of driving or walking. Click anywhere on the map and starting requesting isochrones!

What is the data source? The isochrones displayed on the map are collected from the HERE Isoline API. The results are post-processed in R before mapping. The basemap is provided by Mapbox .

How do I run the application locally? To run the application locally, you will need to generate an app_id and app_code and include a JSON file titled api_keys.json in the same directory as the Shiny application. Requesting API keys from HERE is free and entitles you to 250,000 transactions a month. Your JSON file should look roughly like this:

{"app_id": "<YOUR_APP_ID>", "app_code": "<YOUR_APP_CODE>"}

What technologies are used? As this is a Shiny application competition, I make heavy use of the shiny package. The wonderful leaflet package is used for creating interactive maps. I would also like to highlight the use of the shinyWidgets package, which provides additional UI widgets. Lastly, the smoothr package is used to post-process the API results by smoothing some of the more jagged polygon vertices.


Really nice app @byollin ! From a simple idea such as an isochrone, you made an effective application. The GUI is looking really professional: Liked the Mapbox basemap (didn't know it yet) and the palette choice (all is grey scale apart the isochrones that stand out once they render).

Thank you @alessio. I appreciate the kind words. I had a lot of fun making this application.

BTW, Mapbox also allows you to create custom basemaps with Mapbox Studio. These too can be dropped into any web map.

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.