:mind blown emoji On Fri, Jan 20, 2023 at 9:39 AM Ludovic THEBAULT via use-livecode < use-livecode@lists.runrev.com> wrote:
> Hello, > > Can anyone verify that the corrections I reported to ChatGPT have been > taken into account? > I asked ChatGPT how to geolocate, but it gave me several bad suggestions > for commands that didn't exist : > - mobileControlCreate « geoControl" > - put mobileGetGPS() > - put geolocation() > - put mobileIsGeolocationAuthorized() > …. > > So I told it which commands to use. > > Here my last question to chatGPT : > # To check if the app has permission to access the geolocation on iOS and > then to retrieve that geolocation, what is the correct code? > > His answer : > if mobileLocationAuthorizationStatus() = "authorizedAlways" or > mobileLocationAuthorizationStatus() = "authorizedWhenInUse" then > put mobileCurrentLocation() into tLocation > put "Latitude : " & item 1 of tLocation > put "Longitude : " & item 2 of tLocation > else > put "Géolocalisation non autorisée" > end if > > With a similar question, do you have directly an accurate response now ? > > Thanks > > Ludovic > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode