The world is big. Seriously, I'd say it's really huge. Different countries, cities, various people, and cultures...but still, the internet connects us all and that's really cool. I can communicate with my friends who live a thousand miles away from me.
Because the world is huge, there are many different places that you may need to keep track of within your app. Luckily, there is a great solution to help you find locations by their coordinates, addresses, or even measuring distances between places and finding places nearby. All of this location-based work is called "geocoding". in Ruby, one geocoding solution is called Geocoder and that's our guest today.
In this app you will learn how to
- Integrate Geocoder into your Rails app
- Tweak Geocoder's settings
- Enable geocoding to be able to fetch coordinates based on the address
- Enable reverse geocoding to grab an address based on the coordinates
- Measure the distance between locations
- Add a static map to display the selected location
- Add a dynamic map to allow users to select a desired location
- Add the ability to find the location on the map based on coordinates
Continue reading %Geocoder: Display Maps and Find Places in Rails%
by Ilya Bodrov-Krukowski via SitePoint
No comments:
Post a Comment