Ways to get location of the client from the browser?

前端 未结 6 1636
情深已故
情深已故 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:21

    Here is geolocation described:

    http://www.w3schools.com/htmL/html5_geolocation.asp

    The lat/lng can then be reverse-geocoded to find the country, address. etc.

    https://developers.google.com/maps/documentation/javascript/examples/geocoding-reverse

提交回复
热议问题