Find nearby restaurants registered in the database through google maps

5

I need some help. I have a PHP system with a mysql database with several registered restaurants, with fields like: id, name, address, longitude and latitude and I'm creating an application with Ionic using AngularJS.

In this application I had to make the user to put the address where he is (via google maps api), the restaurants registered in the database closest to the user's address, listed by proximity.

Does anyone know any tutorial or logic on how to do this application?

For example: is it possible through api google maps to make an application like this: link ?

    
asked by anonymous 28.02.2016 / 05:57

1 answer

1

First you have to use the Cordova to get the longitude and the latitude of the cell phone, via GPS, if it is to type there is easier, with this data you increase how many kms you want, extending the longitude and the latitude, doing a ray of how many kms you need. To calculate you have this one link

    
09.03.2016 / 08:34