Using geocoder gem in my web services , the server side we need to validate the uniqueness of location added.Is this possible with the geocoder gem, we don't want the same location twice in our database.
Any help will be appreciated?
Define a uniqueness validation on the model:
validates :latitude, uniqueness: {scope: :longitude}