Skip to Main Content
Learning Geospatial Analysis with Python - Third Edition
book

Learning Geospatial Analysis with Python - Third Edition

by Joel Lawhead
September 2019
Beginner content levelBeginner
456 pages
10h 53m
English
Packt Publishing
Content preview from Learning Geospatial Analysis with Python - Third Edition

Mapping NextBus locations

The best source of freely available street mapping data is the OpenStreetMap (OSM) project: http://www.openstreetmap.org. OSM also has a publicly available REST API for creating static map images called StaticMapLite: http://staticmap.openstreetmap.de.

The OSM StaticMapLite API provides a GET API based on Google's static map API to create simple map images with a limited number of point markers and lines. A GET API, as opposed to a REST, API allows you to append name/value parameter pairs after a question mark on the URL. A REST API makes the parameters part of the URL path. We'll use the API to create our own NextBus API map on-demand with a red pushpin icon for the bus location.

In the next example, we have condensed ...

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.
Start your free trial

You might also like

Mastering Geospatial Analysis with Python

Mastering Geospatial Analysis with Python

Silas Toms, Eric van Rees, Paul Crickard

Publisher Resources

ISBN: 9781789959277Supplemental Content