# A map of places for your app on OpenStreetMap

A map of cafes, parks or stations around a point, drawn from OpenStreetMap data with your own map style.

## Parts

- Data: [OpenStreetMap](https://agentgid.com/resources/openstreetmap/agent.md): A free, editable map of the world built by volunteers, whose full map database can be downloaded as open data.
- Map in the browser: [MapLibre GL JS](https://agentgid.com/tools/maplibre-gl/agent.md)
- Or a lighter map: [Leaflet](https://agentgid.com/tools/leaflet/agent.md)
- Search addresses: [Nominatim](https://agentgid.com/apis/nominatim/agent.md)

## Steps

1. Query the places you need from an OpenStreetMap extract or Overpass, not the editing API.
2. Serve map tiles from your own or a commercial tile host.
3. Show the "© OpenStreetMap contributors" credit linked to the copyright page.

## Watch out

- The public tile server forbids bulk or offline use; a database you build from OSM data is shared under ODbL.

Human page: https://agentgid.com/resources/ideas/places-map-on-openstreetmap/
