I am able to convert PBF to geojson, but I lack the additional attributes like state, country, city, suburb, type of business etc which is offered by geocoding service like Nominatim.
The geojson just has a name and type:
{ "type": "Feature", "properties": { "osm_id": "519326004", "timestamp": "2014-10-29T19:46:31Z", "name": "Borgo Agnese", "type": "restaurant" }, "geometry": { "type": "Point", "coordinates": [ 16.6015512, 49.1915338 ] } }But I need all these additional attributes:
[{"place_id":"4709238","licence":"Data © OpenStreetMap contributors, ODbL 1.0. http:\/\/www.openstreetmap.org\/copyright","osm_type":"node","osm_id":"519326004","boundingbox":["49.1914838","49.1915838","16.6015012","16.6016012"],"polygonpoints":[[16.6015512,49.1915838],[16.601586555339,49.191569155339],[16.6016012,49.1915338],[16.601586555339,49.191498444661],[16.6015512,49.1914838],[16.601515844661,49.191498444661],[16.6015012,49.1915338],[16.601515844661,49.191569155339]],"lat":"49.1915338","lon":"16.6015512","display_name":"Borgo Agnese, 43, Kope
أكثر...
The geojson just has a name and type:
{ "type": "Feature", "properties": { "osm_id": "519326004", "timestamp": "2014-10-29T19:46:31Z", "name": "Borgo Agnese", "type": "restaurant" }, "geometry": { "type": "Point", "coordinates": [ 16.6015512, 49.1915338 ] } }But I need all these additional attributes:
[{"place_id":"4709238","licence":"Data © OpenStreetMap contributors, ODbL 1.0. http:\/\/www.openstreetmap.org\/copyright","osm_type":"node","osm_id":"519326004","boundingbox":["49.1914838","49.1915838","16.6015012","16.6016012"],"polygonpoints":[[16.6015512,49.1915838],[16.601586555339,49.191569155339],[16.6016012,49.1915338],[16.601586555339,49.191498444661],[16.6015512,49.1914838],[16.601515844661,49.191498444661],[16.6015012,49.1915338],[16.601515844661,49.191569155339]],"lat":"49.1915338","lon":"16.6015512","display_name":"Borgo Agnese, 43, Kope
أكثر...