Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate the bounding box with a point and radius #17

Closed
nimashariatian opened this issue Aug 8, 2016 · 2 comments
Closed

Calculate the bounding box with a point and radius #17

nimashariatian opened this issue Aug 8, 2016 · 2 comments

Comments

@nimashariatian
Copy link

nimashariatian commented Aug 8, 2016

hi guys,
first of all, thank you so much for this library!
its amazing !

i just wanted to make a suggestion, it would be great if we could
calculate the bounding box coordinates of a given point at its center along with a radius.

use case:
assuming, having bunch of points saved in the database (longitudes an latitudes),
this could help us find records that are within X miles / kms of a given point.

here is an example of ruby implementation:
https://github.com/alexreisner/geocoder/blob/master/lib/geocoder/calculations.rb#L212

again,
thanks for all the hard work :)

@yltsrc
Copy link
Owner

yltsrc commented Aug 10, 2016

PRs are welcome :)
in other way I can do it, but I can't say when...

@nimashariatian
Copy link
Author

nimashariatian commented Aug 10, 2016

perfect, ill fork and work on it i guess.. i am actually kind of hoping to eventually do a pour of the entire https://github.com/alexreisner/geocoder
from ruby -> elixir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants