Ways to get location of the client from the browser?

前端 未结 6 1659
情深已故
情深已故 2021-01-06 04:40

What i need is the lat/long of the client(via browser)

Found some articles on the net,found some in stack overflow itself(an old article) Get GPS location from the w

6条回答
  •  时光取名叫无心
    2021-01-06 05:22

    https://developers.google.com/maps/documentation/javascript/examples/map-geolocation . simply click on javascript+html and copy the code into an html file.

提交回复
热议问题