5
I could use some help. I have a PHP system with a mysql database with several registered restaurants, with fields such as: id, name, address, longitude and latitude and I am creating an application with Ionic using Angularjs.
In this application I needed to make the user when placing the address in which he is (through the google maps api), appear 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 make this application?
For example: it is possible through the google maps api to make an application like this: http://www.starbucks.com/store-locator/search/?
I think you better develop with native code, java, xml, google maps API key and etc.
– user28366
A tip, you can use the language and structure you want! To search, send the current location to php server, in it do the calculation of
havesine
(Search here in stackoverflow even, have great answers! ) After adie(json_encode($variavel))
– MarceloBoni
All frotend languages, mobile or not, work very well with json to render content
– MarceloBoni