Closed emilevictor closed 11 years ago
I'm specifying kms as my unit as per the instructions, as below:
class Airport < ActiveRecord::Base attr_accessible :IATA_code, :ICAO_code, :name, :latitude, :longitude, :city, :altitude_feet, :timezone_offset, :daylight_savings_time, :openflight_airport_id acts_as_mappable :default_units => :kms, :units => :kms, :default_formula => :sphere, :distance_field_name => :distance, :lat_column_name => :latitude, :lng_column_name => :longitude end
But every distance_to calculation that I make on airport instances returns the distance in miles. There is no initialiser file, as installing the gem didn't put one in the right place.
This can be closed. Steps for resolution:
I'm specifying kms as my unit as per the instructions, as below:
But every distance_to calculation that I make on airport instances returns the distance in miles. There is no initialiser file, as installing the gem didn't put one in the right place.