A fun R programming exercise that uses OpenStreetMap's Nominatim API and the Haversine distance formula to verify whether a geographical signpost (showing distances to nearby cities) is honest about its actual location. The R code geocodes city names, builds a coarse-to-fine grid search to find the point where all distance circles intersect, and then identifies nearby populated cities using the `world.cities` dataset. The example validates distances from Ljubljana, Slovenia to four nearby cities.
Table of contents
Related20 Impressions