How to obtain latitude and longitude of a user by IP address or pinpoint location

后端 未结 2 1106
醉话见心
醉话见心 2021-02-10 13:46

I want to get the geolocation (latitude and longitude) of a computer user by a php script. I was using this one



        
2条回答
  •  Happy的楠姐
    2021-02-10 14:15

    I think this is what you want.simple and easy to use.Thanks to HTML5 see source here

    
    
    

    Click the button to get your coordinates:

提交回复
热议问题