Homework 7
Develop an Android application using Google Maps API
- You need to draw apath on the map from your current location to a static location (destination)
- (e.g. Delta center-58.385254, 26.725064)
- You should mark both locations using a red marker (1pt)
- Get the current location using GPS. (1 pts)
- Draw the best path (dynamically, using Google Directions API ) between two locations (2 pts)
- Clicking on the destination marker should show text, which tells the user how far away the destination is and how long it will take to get there (e.g. as a pedestrian). ( 1 pt)
The app should handle permissions requesting. If the app is 1st launched, it should ask the user for the needed permissions, and after the user grants them, the app should work as described above (without having to restart, etc). If the user denies the permission, the app doesn't really have to do anything.
Note: During the lab sessions, we will distribute a Google Directions API Key for obtaining route waypoints. Since, the key is associated with some restrictions (e.g. limited number of requests per day), you are strongly advised to handle it very carefully.
Some hints:
- If you are using Ion and are getting
java.lang.NoSuchMethodError: No static method metafactory
, look here