R-bloggers
Read post

Little useless-useful R functions – Honest geographical location signposts

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.

    #r#gis
Aug 01•10m read time•From r-bloggers.com
Post cover image
Table of contents
Related
20 Impressions
R-bloggers's image
R-bloggers

205 Followers

•

564 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard