Vladjaye / UB_Printing_App

UB Printing App
0 stars 0 forks source link

Task #4 #9

Open Vladjaye opened 5 years ago

Vladjaye commented 5 years ago
  1. Implement Maps Activity
  2. Request user location
  3. Automatically set directions to the appropriate library (the best according to EPT (Estimated Printing Time) algorithm).
mariaani commented 5 years ago

What's implemented on Maps: added permissions, checking permissions, map opens at destination, implemented markers (for user current position and Capen hall) User marker's position will renew based of movements

TODO: need to fix travel line create getter for estimated travel time value

mariaani commented 5 years ago

Update Rewrote the map 1) I created a new API from Google Maps Platform (used free trial) 2) Created a new class “Parser” which was getting all routes and gave result as a list of lists of latitude and longitude. 3) On the Maps class I was getting url directions, and downloading data from a google map. 4) I created URL which contains current user’s location, destination location (Capen library), sensor, and the new API. 5) I created a method which was downloading (using http I was connected to url, I read the data from it, and the result was a string with a data) 6) I created AsyncTask which was taking and placing data from URL (server and client side) and placing it. 7) Created a new class PTask, which is helping to place locations in right format (JSONObject) (helped to parse), moreover in that class I was taking all direction points between 2 locations, and created blue lines. After I created a polyline on the map. 8) I added working “show my location” button, which is on right corner. 9) I fixed some bugs (on some phones map did not work before) Now direction is created with a blue line.

Vladjaye commented 5 years ago

Acceptance Test:

  1. Open the App
  2. Open "PC List"
  3. Click on "MAP TEST"
Vladjaye commented 5 years ago

Acceptance test screenshot: Maps Screenshot

Vladjaye commented 5 years ago

Acceptance test screenshot after fixing path drawing on Maps: Fixed directions