The students can do this in several ways. #1 and #2 are 'complicated,' the tutorials show 'simple' ways.
1.) Using the Google Map Static Map API

There is a demonstration mode and the real life mode in the example. The demonstration uses the Procedure called StaticMapURLExample. To run this using the student coordinates, disable the StaticMapURLExample WebViewer blocks in Button1 and enable the StaticMapURL2 blocks next to them. Also, in the StaticMapURL2 Procedure (the purple blocks), have the students' supply the coordinates of the destination in the Text blocks that have the xxxx text. Place a latitude in the upper, a longitude in the lower.
The example can be run in an emulator, the real life part requires a real Android device.
For a new user using the Google API is fairly complicated but should not be too difficult if you do the tutorials mentioned by Tim before you try this example.
2) Using the MIT Map component
Later I might post a simple (?) example using the MIT Map component.
Edit: Here is a simple Map component example:

The Developer must replace the blocks in the showDestination Procedure that contain the DESTINATION geocoordinates with the appropriate latitude and longitude.
The app does not automatically zoom in or out so If you see only your location on the Map, zoom out to see the red destination marker.
The example use the build in 'location sensor' in the Map component. That updates the map once about every minute. The older LocationSensor component can be used with Map
as described in the documentation.
See the attached aia. Using Map requires placing objects on the Designer in a particular way so you get a coding 'pass'. and can load the aia to try. The example MUST be
tested on a device with Companion or built as an apk.
In my opinion, the easier of the two ways to understand is the Google Map Static Map API. Easier still is the Where Is My Car tutorial.
3) so perhaps, try these first
Android, Where's My Car? for App Inventor 2 You parked somewhere near the stadium, but when the concert ends you don't have a clue where the car is. Fortunately you haven't lost your Android phone that never forgets anything, and you remember you have the hot new app, Android, Where's My Car?. With this app, you click a button when you park your car, and the Android uses its location sensor to record the car's GPS coordinates and address. Later, when you reopen the app, it shows you a map from where you are to the remembered location-- problem solved! With this tutorial you'll be able to download a created app and then study the annotated blocks below to better understand the app and App Inventor programming in general. This app covers: GPS, TinyDB, and using Activity Starter to open a map. | Advanced |
Map It: Displaying Locations on a Google Map This tutorial shows how you can develop an app that allows you to record list of addresses and view the address on the Google Maps. It will also show you how view your current location on the Google Map. |
Regards,
Steve