I am creating a mobile app and am using the "pui.capturePhoto" function to allow picture taking on the mobile device. Is there a similar function that will allow me to grab the current latitude and longitude from the device?
Thanks.!!!
GEO Codes in a mobile app
-
- Profound User
- Posts: 80
- Joined: Mon Apr 20, 2009 11:26 am
- First Name: Devin
- Last Name: St. Germain
- Company Name: Dupre Logistics, LLC
- Phone: 337.314.2259
- Address 1: 201 Energy Pkwy. Ste. 500
- City: Lafayette
- State / Province: Louisiana
- Zip / Postal Code: 70508
- Country: United States
- Contact:
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: GEO Codes in a mobile app
The latitude and longitude are just variables you can retrieve in the display's JavaScript. Not sure why you'd want to upload them to the IFS?
-
- Profound User
- Posts: 80
- Joined: Mon Apr 20, 2009 11:26 am
- First Name: Devin
- Last Name: St. Germain
- Company Name: Dupre Logistics, LLC
- Phone: 337.314.2259
- Address 1: 201 Energy Pkwy. Ste. 500
- City: Lafayette
- State / Province: Louisiana
- Zip / Postal Code: 70508
- Country: United States
- Contact:
Re: GEO Codes in a mobile app
I didn't realize that it would be that simple. I was thinking there would be a function to have the device return them. Can you give me the variable names that I would use to retrieve them? As you said, there is no need to upload them to the IFS, I just want to make the accessible to the RPG program.
Thanks.!!
Thanks.!!
- Glenn
- Profound Logic Staff Member
- Posts: 124
- Joined: Mon Apr 14, 2014 4:08 pm
- First Name: Glenn
- Last Name: Hopwood
- Company Name: Profound Logic Software
- State / Province: Ohio
- Country: United States
- Contact:
Re: GEO Codes in a mobile app
I believe Scott may have been alluding to the Navigator object available via JavaScript.
http://www.w3schools.com/html/html5_geolocation.asp
Glenn
http://www.w3schools.com/html/html5_geolocation.asp
Glenn
-
- Profound User
- Posts: 80
- Joined: Mon Apr 20, 2009 11:26 am
- First Name: Devin
- Last Name: St. Germain
- Company Name: Dupre Logistics, LLC
- Phone: 337.314.2259
- Address 1: 201 Energy Pkwy. Ste. 500
- City: Lafayette
- State / Province: Louisiana
- Zip / Postal Code: 70508
- Country: United States
- Contact:
Re: GEO Codes in a mobile app
I got it going.!!! Thanks Everyone!!
Who is online
Users browsing this forum: No registered users and 5 guests