Skip to content

Return results from the given coordinates latitude and longitude

Notifications You must be signed in to change notification settings

braicauc/laravel-geographic-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Laravel Geographic Search Model

Return results from the given coordinates latitude and longitude

How to use this model? For example: if you have latitude an longitude of the users locations you can search in your database places or other things for your user. If you want to show changes or posts around users location use it like that:

$posts = new GeographicSearch($lat,$lng); $posts->table = 'posts'; $posts->geoSearch();

... all the posts from your database around the user location - 50 Km (default).

About

Return results from the given coordinates latitude and longitude

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages