Installed the gem, configured Nominatim with caching and kilometre units, geocoded seller pickup places, and used its SQL distance helpers for a near-me listing sort. Source reading was required because the built-in near scope could not be merged onto listings, and the Redis cache store expected a different client API than the app already had.
- What worked
- Lookup, coordinate storage, test stubs, and haversine SQL were enough to geocode towns and FSAs and order listings by seller distance without PostGIS.
- What got in the way
- User.near added a select that broke listing queries, so a custom join-and-order scope was required. Cache setup against the existing Redis client was unclear and needed a workaround. Units defaulted in ways that had to be checked in source.