sagt3k Posted July 20, 2012 Posted July 20, 2012 Hello, I want to know if it was possible by using a UNIGUI form, a smatphone and a browser, create a form page / frame where I can acquire data from the GPS directly by the device with some API (for example) and then be able to save the lat./long. on a database? Thanks Quote
Harry Rogers Posted July 20, 2012 Posted July 20, 2012 Google have a javascript API for gaining access to the GPS hardware. I have not had a chance to try anything with it yet but maybe promising ? http://code.google.com/p/geo-location-javascript/ Quote
Oliver Morsch Posted July 20, 2012 Posted July 20, 2012 <script type="text/javascript"> function success(position) { alert(position.coords.latitude + ' / ' + position.coords.longitude); } function error(msg) { alert('failed'); } if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(success, error); } else { alert('not supported'); }; </script> Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.