Geocoder to work with two addresses
问题 rails 4.1.3 application with Geocoder gem has the following attributes on a model t.decimal :origin_lon, :precision => 15, :scale => 10 t.decimal :origin_lat, :precision => 15, :scale => 10 t.point :origin_lonlat, :srid => 3857 t.decimal :destination_lon, :precision => 15, :scale => 10 t.decimal :destination_lat, :precision => 15, :scale => 10 t.point :destination_lonlat, :srid => 3857 The model is defined with geocoded_by :origin, :latitude => :origin_lat, :longitude => :origin_lon geocoded