Locations close to a certain point of known coordinates

I would need to find the names and distances of the localities (i.e. points of interest) which are close to a point of known coordinates and which are about 1 km away from it.
However, the query must be made with a programming language such as VB6, B4A or other but by accessing via the http (or https) protocol and reading the results that the query provides (in any format (TXT, JSON, CSV, etc. )
Something like this (very roughly)
JobOSM.PostString(“http://siteOpenStreetMap/page.php?Lat=44.1234&Long=7.123&Distance=1000”)
From such a query I would like to derive for example
Alpha, 450m
Beta, 600m
Other,650m
where Alpha, Beta, and Other are the place names.
Thanks for your attention

The traditional answer would be “load the OSM data that you are interested in into a database that understands geographical objects and do the query there”. However, are you perhaps looking for a service maintained by someone else that would return the answers you’re interested in in response to an http query?

Yes, I’m looking for some service that will give me the answers following a http query

You can use the Overpass API (e.g. for waste baskets):
Waste baskets 5 km around 52.5043,13.3872

And via http query:
https://overpass-api.de/api/interpreter?data=node[amenity=waste_basket](around:5000.0,52.5043,13.3872);out;

4 Likes

I also think Overpass API is what you need, documentation is at

Overpass API - OpenStreetMap Wiki

1 Like