Home >Backend Development >PHP Tutorial >How to obtain the user's current detailed geographical location
Recently there is a need to obtain the businesses nearby the user. How to obtain the user’s location? It’s a more accurate method with smaller error. Please give me some guidance
Recently there is a need to obtain the businesses nearby the user. How to obtain the user’s location? It’s a more accurate method with smaller error. Please give me some guidance
You can use a third-party map API to obtain the user's current latitude and longitude: Amap API | Amap web positioning
Third party API
Are you a mobile phone (look at the App
or Web
PHP
you use for tags, it should be Web
), App
has GPS
, Web
has some third-party Api
tune.
Look at the search effect of Baidu Map API within the specified circular area http://developer.baidu.com/ma...
If this is the need, you should call the API provided by the browser. Generally, browsers will still provide these APIs. Please refer to here http://www.zhangxinxu.com/wor... If not, it is recommended. Let users manually locate