|All requests||>||User location using an API||>||Request new recommendation||>||Featured requests||>||No recommendations|
by Vipin.RV - 6 years ago (2015-08-01)
I want obtain the user location details automatically.
I want search and take location details by suburb.
1. by Manuel Lemos - 6 years ago (2015-08-04) Reply
When you say the user location, do you mean the user accessing a Web page?
Usually you get the IP address and call some API or search a location database file to find an approximate postal address associated with that IP address.
Is this what you want?
This seems to be two requests, one to get the user location and another to search something near the user location.
This class can be used to detect the user location with good accuracy with the help of some browser side HTML5 APIs if the user device has some GPS or some other way to tell its geographic coordinates.