Tracking user in the polygon

Greeting.

I am new to working with MIT App Inventor.

I would like to make a program where I will make a polygon on the map and when I am inside it (the program monitors my movements using GPS), and measures and records my time while I am in the polygon.

thank you for all the advice and help provided.

Welcome Robert.

Useful tools for one way to approach this Project:

  • Polygon (in or outside the polygon (there is a tool to do determine if in or out of the polygon) and provides away to create / display the polygon on a map)
  • LineString (display a trak showing where you have been) For example LineString to draw a track
  • Map (display on a map all the above)
  • Clock (keep track of time).
  • LocationSensor (use with gps hardware)
  • TinyDB (store/save coordinate results on the device)

Issues:
You can not with Blocks monitor continuously without a StayAwake routine or an extension. App Inventor apps do not run in the background natively. A partial solution for your app using an extension:

Another way: use http://geojson.io/ to build your polygon; import the polygon as a FeatureCollection.
and another way

A discussion from the original forum: https://groups.google.com/g/mitappinventortest/c/oywvDgBTjRE/m/sY0jZrT-CQAJ

Search the forum for many more examples for pieces of your proposed app.

Good luck.

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 http://www.appinventor.org/book2 ... 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 http://www.appinventor.org/content/CourseInABox/Intro and the aia files for the projects in the book are here: http://www.appinventor.org/bookFiles

How to do a lot of basic things with App Inventor are described here: http://www.appinventor.org/content/howDoYou/eventHandling .

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.

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

2 Likes

thank you. you helped me a lot.

1 Like