Map Making - Region From Co-Ordinates (Part 3)

Published on February 24, 2022

In the last two guides, we learned how to get co-ordinates data, and how to make a map from it. In this guide, we will continue with getting the country (or region) name with the Device extension.

🏷️ Tags: #tutorials-and-guides, #maps, #extensions

Step 1. Setting Up Your Project.

  1. Open your project from part 2.

  2. Download the Device extension, available here, and import it as an extension.

  3. Drag out the extension into the workspace.

  4. Drag out a Label from the User Interface. Rename the label to LocationLabel. That's it!

Step 2. Editing App Inventor Blocks.

  1. Add blocks to the original LocationSensor.LocationChanged event. That's all you need!

Note: the GetCountryName block does not always return the country name. It might return the region name, e.g. Taiwan, Hong Kong, Beijing. According to the UN, Taiwan and Hong Kong are regions of China, and Kosovo is a region in Serbia.