Recently, we have a requirement to obtain the user's nearby businesses. how can we obtain the user's location? This is a relatively accurate method with a small error. please be guided by your great gods. recently, you have a need to obtain the user's nearby businesses. how can you obtain the user's location? This is a quasi-accurate method with a small error.
Reply content:
Recently, we have a requirement to obtain the user's nearby businesses. how can we obtain the user's location? This is a quasi-accurate method with a small error.
You can use a third-party Map API to obtain the user's current latitude and longitude: amap api | AMAP web location
Third-party api?
You are a mobile phoneAppOrWeb(See what your tag uses.PHP, It should beWeb),AppYesGPS,WebSome third partiesApiYes.
Look at Baidu Map API search results within a specified circular area http://developer.baidu.com/ma...
If this is the case, you should call the APIs provided by the browser. these APIs are generally provided by the browser. For more information, see http://www.zhangxinxu.com/wor ....