karam-mustafa / laravel-geographical-calculator

laravel package helps you to implement geographical calculation, with several algorithms that help you deal with coordinates and distances.
MIT License
417 stars 28 forks source link

default unit KM and not Mile #5

Closed Oxicode closed 2 years ago

Oxicode commented 2 years ago

why mile?

karam-mustafa commented 2 years ago

Actually, there are no reasons to keep units dealing with kilometers or miles on any units you can implement your default options by using setOption function, and I'm not going to close this issue, to listen to the community's opinion

// All of these units should be calculated or you can choose one of them only
->setOptions(['units' => [
      'km',
      'mile', 
      'm',
      'cm'
]]);

Thank you