O'Reilly logo

Learning Geospatial Analysis with Python - Second Edition by Joel Lawhead

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Mapping NextBus locations

Now, we are ready to use this information to create our own map. 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 called StaticMapLite to create static map images: http://staticmap.openstreetmap.de.

The OSM StaticMapLite API provides you with 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 REST, 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required