Get user's location (latitude, longitude) with Bing or Google Maps API

前端 未结 2 1975
别那么骄傲
别那么骄傲 2020-12-06 02:21

is there a way to retrieve a latitude & longitude of the user using Bing Maps API or Google Maps API. I think I saw an code snippet where a \"autolocate me\" feature was

2条回答
  •  [愿得一人]
    2020-12-06 03:07

    HTML5 GeoLocation get lat and long of current location. http://www.w3schools.com/html/html5_geolocation.asp

    
    
    
    
    

    Click the button to get your coordinates:

提交回复
热议问题