You can conduct reverse geocoding using the Python Geocoder library.
Notes: Input for coordinate is using [lat, lng] order.
import geocoder
g = geocoder.osm([45,-75], method='reverse')
{...}TypeScript
TypeScript 2.0 type definition was added to the DefinitelyTyped repository.
npm install --save @types/turf| module.exports = function(data, tile, writeData, done) { | |
| let count = 0 | |
| for (const feature of data.osmdata.osm.features) { | |
| if (feature.properties['@user'] === 'DenisCarriere') { | |
| if (feature.properties.building) count += 1 | |
| } | |
| } | |
| done(null, count) | |
| } |