GPS location tracking

I am looking for some solution to implement GPS location into SC Form. Have zero experience with GPS and very little with maps. Basically what I need is to store coordinates when the user click the button. At the moment I am talking about the web App opened on the mobile phone, but once this is working I would like to convert this into a mobile app. The preferred browser is Firefox (but if it works in chrome etc , that’s fine). It will be form to check-in and check out of the location.

Any ideas ?

You really good for asking the same question over and over

i wanted to post a link but i cant… any way theres is an html geolocation api search for it on google, “html gps geolocation”

it has some security restrictions, for instance the app should be hosted on a secure connection site, you can try on your development computer, but when you host the app it should be in a secured site.

but…
you should ask chat gpt, give me an small code html to get location of the coputer using gps and then, store that coordinates on a php variable

test te code, paste it on a blank app and you are good to go

best regards

You can use the HTML5 Geolocation API to get the user’s GPS coordinates in a web app. Add a custom JavaScript button to your Scriptcase form. When clicked, use navigator.geolocation.getCurrentPosition() to fetch the latitude and longitude, then send this data to a Scriptcase field (via AJAX or direct assignment). Most modern browsers, including Firefox and Chrome, support this feature. Start with this API in your browser console, then integrate it into Scriptcase. There are also many online tutorials for “HTML5 Geolocation with PHP.” Good luck!