Introducing OpenStreetMapX
OpenStreetMap is a collaborative project in which to create and keep updating a digital map of the world that you can explore at www.openstreetmap.org. You can download the map of a desired region of the world in the OSM format—an XML file—from that site. In Julia, you can parse OSM files using the OpenStreetMapX
package. Then, you can visualize it using Plots
, the default option, PyPlot
, through the OpenStreetMapXPlot
package, or using the folium
Python package, through PyCall
. Let’s quickly explore the OpenStreetMapX
and OpenStreetMapXPlot
packages by plotting a map of present-day Soho, London, using Pluto:
- In the first cell, execute the following code:
using OpenStreetMapX, OpenStreetMapXPlot, Plots
This loads the necessary library to plot the data from OpenStreetMap in Julia using Plots
.
- Execute the following code in a new cell:
Download("https: https://github.com/PacktPublishing/Interactive-Visualization...