GeoJSON
GeoJSON is an open standard format (IETF RFC 7946) for geographical information systems (GIS), supported by most GIS applications, GPS software and Web-based mapping applications. Many public data portals provide geographical data in GeoJSON or derived formats such as TopoJSON. GeoJSON files contain geographical coordinates for points and shapes. You can use GeoJSON to draw maps using vector graphics.
GeoJSON is a JSON format. You already know how to load JSON files and extract their data, so it shouldn't be hard for you to load a GeoJSON file, access its properties and plot its coordinates in a Cartesian grid. You may recall that we already did that in Chapter 4, Data Binding (see the section called Drawing a map with SVG) using ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access