What is the simplest way that I can make a navigation app that navigates from current location to anywhere that I long press on a map

Im just looking for the simplest way to do it, I've seen the tutorial and it seems to be too complicated, what is the simplest method to do it as I can't really find another tutorial that makes it easy. I want it to be easy as I have very limited time to make this app

Here are the essentials; limited error control; limited instructions; limited conveniences since you have limited time to build and need something someone simple can understand.

2 Likes

Thank you very much for the fast response and the easy code, everything else was either too complicated or didn't meet my criteria. again, thanks a ton! also, what components are used/could you also send the screen design pic? Im new to MIT app inventor

Is there any topic/forum that explains how this code works? I'm curious

Yes, the minimal app uses

  • The Navigate control to provide ‘turn by turn’ directions used to get between two locations. The routing output is similar to directions provided by the Google Maps Directions api . The on line Navigate service is provided by OpenRouteService.

The Navigate tool requires an api key not provided by App Inventor 2. Obtain your own,
free OpenRouteService api key to access the service. . OpenRouteService is an open source on-line service that provides a generous amount of free usage. Is this all free? No. Up to 2,000 requests per day are free

  • the directioinsFromNavigation... Procedure formats the directions provided by the Navigate control so that the turn by turn directions can be displayed nicely in a Label.

  • The LocationSensor provides the device's current latitude and longitude.
    See * Using the Location Sensor

  • A Linestring is used with the Map control to display the route you request when you use the Map.LongPressAtAnyPoint on the Map.to show the current location (provided by the LS) to the destination you selected on the Map.

:thinking:

Here are some resources to help you learn to use the AI2 tools. A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook App Inventor 2 Book: Create Your Own Android Apps ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.

There is a free programming course here Course In A Box and the aia files for the projects in the book are here: App Inventor 2 Book: Create Your Own Android Apps

How to do a lot of basic things with App Inventor are described here: How do you...? .

Also look here App inventor español. Offline. Tutorial. Ejemplos. Instalación. Códigos. Juegos. Curso gratis de App inventor. and here Tutorial Index | imagnity for more tutorials including Imagnity.com List Tutorial, Mirrored - @Saj

Learn about components Component Reference
and visit the Library The MIT App Inventor Library: Documentation & Support Help>Library on the MENU

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.