Choice between linear and spherical for distance_between
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.
I encourage you to submit a pull request for this. Shouldn't be hard, just take a look at lib/geocoder/calculations.rb.
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?
For now I think best to use the existing config.
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.
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.