User location using an API #suburb
Edit
by Vipin.RV - 9 years ago (2015-08-01)
Search user location with an API
| I want obtain the user location details automatically.
I want search and take location details by suburb. |
- 1 Clarification request
1.
by Manuel Lemos - 9 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?
Ask clarification
2 Recommendations
Very Simple IP Details: Get IP address location and Google Maps image
This class can get IP address location and Google Maps image.
It can send a HTTP request to the IPInfo.io API to get the geographic location details of a given IP address. Currently it can obtain IP address country code, region, city, postal code, latitude, longitude, hostname and organization.
The class can also return HTML to embed a static image from Google Maps showing the geographic location of the IP address.
| by zinsou A.A.E.Moïse package author 6835 - 7 years ago (2017-08-20) Comment
new requesters could try this |
Localization class: Detect user location using HTML 5 API or GeoIP API
This class can detect user location using HTML 5 API or GeoIP API.
It can generate HTML with JavaScript code to detect the user location using Google Maps API on a browser that implements the HTML 5 geo-location API.
The class can also determine the user location by sending a HTTP request to the GeoIP API Web server to retrieve the location associated to the current use IP address.
| by Manuel Lemos 26695 - 9 years ago (2015-08-15) Comment
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. |