Martin Nuc
Martin Nuc

Reputation: 5764

OpenStreetMap server API on my own server

I followed this tutorial to make own OpenStreetMap server: http://switch2osm.org/serving-tiles/manually-building-a-tile-server-12-04/

Now I would like to use OSM API (http://wiki.openstreetmap.org/wiki/API_v0.6) to read the map. I dont need rendering tiles but to read nodes/ways over REST API.

There is running Apache on my OSM server so I believe I should put it there.

Is API part of Mapnik or should I download some additional software? Or is API specific to main OSM server only?

Upvotes: 4

Views: 6340

Answers (1)

scai
scai

Reputation: 21469

This API is specific to OSM, Mapnik is not involved. You can read more about it at the API page in the OSM wiki. The API implementation is contained in the Rails port which is hosted on the openstreetmap-website github project.

Note that this API is primarily designed for editing purposes and not for bulk queries. Depending on your use case it might be a better idea to set up the Overpass API on your server. This API is usually faster and features a complex query language with many nice features not contained in the main API.

Upvotes: 8

Related Questions