The text box is showing where Carr Saunders building is the issue is now the route
I think I know why. That sometimes happens with ORS directions..
Wait and I will post two different Projects; one using Navigate, the other without Navigate.
you can try. You will have to type your Token in the Blocks to use the Navigate version. The other example should just work.
Load each of these examples and test with Companion
Example without Navigate
Zimbabwe_Univ__withooutNavigate.aia (7.2 KB)
Example with Navigate that should work after you insert your ORS token (the ApiKey Block is in the File1.GotText event handler.)
Zimbabwe_Univ_Diret_fixed.aia (8.0 KB)
If you do not get the desired result immediately either wait for the gps to get a satellite fix or press the Building name again after a few seconds.
OK now, what happens for each example please.
should l load them on a new project or the current one am working on
simply just download the aia's and load them as they are. These are new complete Projects
on it
It working l just have to pan the coordinates of the university to the app so that it opens directly on campus
Good day
now l want to input the other csv files that l have that is for parking spaces, sports field and roads. as for roads l want to specify their categories eg walking paths and major roads. In the previous blocks we have been using campus buildings only
what l have noticed is that the gps signal when you are inside a building its weak hence am not sure if its possible to create a navigation app within a building
I have been trying to go through my blocks and yours to see where l am missing it , how come the API key is working on yours
- create a separate csv for these other facilities
- or add the destinations for these to your existing List of destinations.
Probably because you input your api token in the aia Block?
I did try using it in the blocks unless if it was a case that l was supposed to delete it in the design
if l create different csv file where am l supposed to attach them in the blocks am l supposed to use the join block
-
no you cannot use the join block
-
there are many ways you can do this. An 'easy' way is to provide a second File control as indicated below. Another way would be to load the facilities csv and provide a switch to select between them. This is YOUR app. Try some blocks on a copy of the app Project that works so that if you make a coding mistake, you can recover.
-
different csv then you can use a second File control (File2) and second ListView possibly and then use similar Blocks as below. You need to replace destSubList with facilitiesSubList and an appropriate name for your second csv
You need to adapt the File1 code to File 2 blocks
for the read from filename block am supposed to put the first file , the second file in the same text block