Tracking user in the polygon


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)

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 to build your polygon; import the polygon as a FeatureCollection.
and another way

A discussion from the original forum:

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 ... 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 and the aia files for the projects in the book are here:

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

Also look here and here for more tutorials.

Learn about components
and visit the Library Help>Library on the MENU


thank you. you helped me a lot.

1 Like