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

Geospatial support #29

Open
Zen0x7 opened this issue Mar 13, 2020 · 2 comments
Open

Geospatial support #29

Zen0x7 opened this issue Mar 13, 2020 · 2 comments

Comments

@Zen0x7
Copy link

Zen0x7 commented Mar 13, 2020

Hi @igaster

This package is awesome. What you think about support laravel-mysql-geospatial package?

With this you can get near cities.

@vesper8
Copy link

vesper8 commented Apr 6, 2020

I'm assuming you mean this one https://github.com/grimzy/laravel-mysql-spatial ?

I too came here looking for a package that would make it easy to, for example, return the city nearest to a given coordinate (lat/lng). It doesn't appear at first glance that this is what this package is intended for... but maybe I'm mistaken... care to comment @igaster ? Does your package support reverse geocoding queries? Ie I pass it the lng/lat and it returns cities nearest to that location sorted by distance to?

@Zen0x7
Copy link
Author

Zen0x7 commented Apr 6, 2020

Hi @vesper8, that feature should be nice.

Currently lat and lng columns are stored using string type. =(

Maybe if we or w/e change the column type to spatial type then reverse geocoding can be posible.

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