我正在建立一個移動網站,它將跟蹤手機的位置,然後將執行基於位置的搜索。任何人都可以幫助如何獲得手機的位置。我正在使用jquerymobile和php。跟蹤手機的位置
Q
跟蹤手機的位置
2
A
回答
1
還有HTML5地理位置API有提供基於Web的API一些其他的選擇。
西班牙電信已經通過兩個網絡API,並從Bluevia https://bluevia.com/en/ 一個Android SDK AT &牛逼提供位置開發商對位置http://developer.att.com/developer/apiLandingPage.jsp?passedItemId=9700218 Verizon公司類似的API還提供了一個位置API太http://developer.verizon.com/content/vdc/en/verizon-tools-apis/verizon_apis/network-api.html
這也是值得注意的是,網絡運營商目前正在推出OneAPI標準,該標準爲開發人員提供了一個單一API,以便在所有網絡(包括位置)上使用。迄今爲止已在加拿大發布http://oneapi-gw.gsma.com/
1
您需要使用HTML5地理位置API:
navigator.geolocation.watchPosition(locationSuccess, locationError, {timeout: 30000});
function locationSuccess(position)
{
// this is your position as a LatLng object. use it however you need
var latLng = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);
}
function centerOnLocationError(err)
{
if (err.code == 1)
alert("You must allow this website to use the Geolocation API to access your position.");
else if (err.code == 3)
alert("Unfortunately, your position request timed out.");
else
alert("Unfortunately, your position could not be determined.");
}
相關問題
- 1. Windows手機位置跟蹤程序
- 2. 跟蹤位置
- 3. 位置跟蹤
- 4. 通過手機號碼跟蹤用戶的位置
- 5. 應用可以跟蹤手機位置嗎?
- 6. windows手機網絡跟蹤
- 7. Div位置跟蹤
- 8. 朋友的跟蹤位置
- 9. 跟蹤boost :: spirit的位置
- 10. 裸手跟蹤
- 11. 點擊跟蹤位置
- 12. 地理位置跟蹤
- 13. cllocation跟蹤一個位置
- 14. html5地理位置跟蹤
- 15. 排序後跟蹤位置
- 16. 跟蹤用戶位置
- 17. 實時位置跟蹤
- 18. 在android中跟蹤位置
- 19. 背景位置跟蹤:iOS
- 20. 功能手機跟蹤應用程序
- 21. 使用GPS跟蹤手機號碼
- 22. Android手機不傾銷堆棧跟蹤
- 23. 手機的位置
- 24. CLLocationManager跟蹤錯誤的位置(跟蹤我)
- 25. 是否有可能使用藍牙(Android和iOS)跟蹤手機位置
- 26. 用戶郵件跟蹤位置(在閱讀郵件時跟蹤用戶位置)
- 27. kinect手和手指跟蹤
- 28. 實時跟蹤手
- 29. 手跟蹤僞碼
- 30. 跟蹤我的設備的GPS位置
您不需要找到移動的位置,製作一個移動應用程序,它會定期將其位置發送到您的網站。 – Lucifer