I am struggling to run this app it keeps saying something about: The operation > cannot accept the arguments: , [0.0], [empty-string]. I think the problem is with the Sort and get list procedure. Any ideas how to fix this will be appreciated?
after clicking plot parks the app shows markers but gets no further...
No hidden buttons becomes visible.
Thanks for your posts Waldo.
It appears the latest version of Companion 2.63 or the nb189a release on June 19, 2022 broke the code again.
I will attempt to find out what the problem is. Yes I get a similar error .
Use the fixed aia. replacement Waldo.
NationalParks3a.aia (17.0 KB).
The aia was corrected in the tutorial too. National Park Tutorial (Markers) updated
The problem was how the new release handled the csvdistanceList differently than pre update.
Does the example work now?
Hi, so I need help on getting explanation for these super long block codes on why and what does it do.
The blocks are as below
- The whole block is very confusing, but why is it needed and what does it do?
- What is the purpose of the minimum value needed for?
- Why does the selected item, needs to be sorted out?
- There are a couple distance lists, may i know what are the difference between them and the functions?
- What does the control "for each number from 1 to length of list by 1" do
- if the number in marker map list is less than 1 then it will add item in it, is my interpretation correct?
- Why does global csv has to be joined with the decimal number of user's lat and long?
- Why does experimental distance CSV has to be converted into the distance csv
- Then, why will experimental distance CSV be deleted
- I don't understand why is minimum at the index and what does it do
Thank you so much for helping out, I really want to understand the codes, so that i can start doing a similar project for my own use.
The aia is here
NationalParks3a.aia (17.0 KB)
Credits to @SteveJG
The Procedure sorts a generic List. See List Sorting On App Inventor | Imagnity . The Procedure is used in the app to determine the Park that is closest (by straight line distance) to the app's user. The app needs to determine how far away each Park is from the app's user. If you are not concerned with which Park is closest, the MinimumValueinList would not be needed. You might wish to re-read the tutorial
The "for each number... "
does several things, notably the involved Block calculates the distance each Park is from the user.
Load and run the aia, then use DoIt debugger to see what values are evaluated in specific parts of the code.