geocoder icon indicating copy to clipboard operation
geocoder copied to clipboard

Choice between linear and spherical for distance_between

Open donaldpiret opened this issue 14 years ago • 5 comments

I'm surprised we don't get the option of choosing between a spherical and linear formula for calculating distances. For search-engines that need to query large amount of objects based on relatively small distances this makes a fairly big performance difference and other libraries like Geokit have this implemented throughout.

donaldpiret avatar Nov 22 '11 09:11 donaldpiret

I encourage you to submit a pull request for this. Shouldn't be hard, just take a look at lib/geocoder/calculations.rb.

alexreisner avatar Nov 23 '11 04:11 alexreisner

Should this feature use the same distances config for setting the formula that will be used for the distance calculation? or create a new config setting called distance_formula?

yshahin avatar Mar 27 '13 17:03 yshahin

For now I think best to use the existing config.

alexreisner avatar Mar 27 '13 17:03 alexreisner

Hi, I'd like to work on adding this additional functionality if you don't mind. Let me know if it's still something that is of your interest.

Cheers, Julio.

jcfausto avatar Aug 14 '19 07:08 jcfausto

Please go ahead I am no longer working on this.

Best Regards, Youssef Shahin On Aug 14, 2019, 9:04 AM +0200, Julio Cesar Fausto [email protected], wrote:

Hi, I'd like to work on adding this additional functionality if you don't mind. Let me know if it's still something that is of your interest. Cheers, Julio. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

yshahin avatar Aug 14 '19 10:08 yshahin