$25
In this assignment you will interface Google Maps into your app, and include poly lines and markers in the app.
Part 1:
1. Create an activity and include Google maps in this activity. Follow all the instructions indicated in the Google Maps documentation.
Part 2:
1. You are provided with a “trip.json” file, which should be added to your project as follows:
a) Create a “raw” folder under the “res” folder.
b) Copy the “trip.json” file into the “raw” folder.
2. After the Map is loaded into the activity, your code should read and parse the “trip.json” file, (you can use the Gson library to parse the json file).
3. The trip points loaded from the “trip.json” file should be plotted on the Google map as follows:
a) The trip should be displayed using the “Polyline” shape.
b) The start and end points of the trip should be indicated with markers
After plotting the trip information the map should be centered and zoomed to display all the trip points. Also map should be auto zoomed to include all the trip points in the map’s bounding box. Check CameraUpdateFactory class at the following link