hello, i want to learn, is there a any way to use utm/mgrs lat/log coordinates

110 views
Skip to first unread message

Kamuran ÇULHA

unread,
Oct 6, 2017, 7:27:57 PM10/6/17
to MIT App Inventor Forum
hello, i want to learn, is there a any way to use utm/mgrs  lat/log coordinates with app inentor2

Evan Patton

unread,
Oct 7, 2017, 11:58:47 AM10/7/17
to MIT App Inventor Forum
App Inventor does not have native support for any sort of latitude/longitude coordinate system. Typically when people build apps, they'll use decimal notation lat/long with degrees north of the equator as a positive latitude and degrees east of the prime meridian being positive longitude. You could implement parsing of these alternative coordinate systems into this format using a combination of text/math blocks if you prefer those as input.

Evan

SteveJG

unread,
Oct 8, 2017, 4:19:42 PM10/8/17
to MIT App Inventor Forum
This link might help  http://www.uwgb.edu/dutchs/usefuldata/utmformulas.htm  , it shows the math required.  There are some functions that generic App Inventor cannot handle so that is a problem.   However, there is a Math extension .... search the Forum for math extension... that might allow you to do the conversion.  You might try converting to UTM using the advice in the link and the Math extension.   Let us know how that works.  Here are some UTM discussions from this Forum  https://groups.google.com/forum/#!searchin/mitappinventortest/utm%7Csort:relevance     One of the threads indicated someone did use AI blocks to do the conversion.


Alternatively, you may be able to use an online converter to convert lat/lon to UTM and use those values http://www.uwgb.edu/dutchs/usefuldata/ConvertUTMNoOZ.HTM    or you might integrate a javascript routine into App Inventor ...  the javascript would be in one of these links   https://www.google.com/search?q=javascript+lat+lon+to+utm&oq=javascript+lat+lon+to+utm&aqs=chrome..69i57.11775j0j7&sourceid=chrome&ie=UTF-8    


Does anything here help you.   If you find a great solution, consider posting it here because there probably are others who would be interested.  Thanks.

Regards,
Steve
Reply all
Reply to author
Forward
0 new messages