OpenPlaceGuide is a federated business directory.
The discover component is a Cloudflare Worker which provides an API to match given coordinates to the OpenPlaceGuide instance.
Discovery is a two step process.
You need the location (latitude, longitude) and optional the osmType (point, way, relation) and osmId (positive integer).
Example:
GET https://discover.openplaceguide.org/v2/discover?lat=8.9776209&38&lon=38.7617240&osmId=way/162817836
returns:
[{"url":"https://opg.addismap.com/way/162817836","name":"AddisMap"}]
The returned url will redirect to the micro page for the OSM object.
Active contributors / teams of the OpenStreetMap are invited to set up a data repository for their country and register the country in here.
-
Supply your
.poly
file, for example from download.openstreetmap.fr or GeoFabrik -
Convert the
.poly
file to a geojson filegit clone https://github.com/spatialoperator/osmosis2geojson.git cd osmosis2geojson yarn ./osmosis2geojson.js your-country.poly > ../discover/storage/app/areas/your-country.geojson
-
Format the file
-
Add the end of the file, add additional properties
npm run dev