Determining User and Location Coordinates with the Geocoder Gem
Location-based web applications calculate distance between objects using the latitudinal and longitudinal coordinates and the Haversine formula. But how does one determine an object’s coordinates given a street address or IP address, let alone calculate the distance between two sets of coordinates? Fortunately the Geocoder gem turns these otherwise complex tasks into a fairly trivial matter. In this post I’ll show you to to integrate Geocoder into your Rails application.
Post a comment