Can iPhone web apps get GPS position?

前端 未结 4 1418
情深已故
情深已故 2021-01-30 14:49

Is there an easy way to design a website to facilitate an iphone user providing gps coordinates to the site?

I am wondering if there m

4条回答
  •  青春惊慌失措
    2021-01-30 15:40

    Yes, but the accuracy is pretty bad. I just built a web form that posts GPS settings from the watchPosition() function to my database and then maped the results. While paddling down a local river it got only two of seven posts correct. The rest were outside the river, and two of those were about a mile away! I'm now looking for a better solution.

    Here's the code I use to update the form fields:

    
    

    And this is the form. Update to suite your needs.

提交回复
热议问题