It will consist of a map view that the user can pan and zoom. Upon a request from the user, the program will fetch the center coordinates. The program will select some coordinates around the center and query directions for those coordinates.
For example, we can start from Smedstorpsgatan 13 in Malmö (55.6 N, 13.05 E). I select an end coordinate at Storgatan 39B (55.6 N, 13 E).
Four different queries are made:
Driving:
The program should select the shortest of the three different proposals for driving. |
Cycling:
Walking:
The program will compare the four different means of transportation. For the queries above, both cycling and driving gave the same results in minutes (the response to the API query will be in seconds, so this case will be unlikely). The app will display one of the best options for that target coordinate and continue with other coordinates to form a grid on the map:
(55.65 N, 13.00 E), Swim | (55.65 N, 13.05 E), Bicycle | (55.65 N, 13.10 E), Bicycle |
(55.60 N, 13.00 E), Transit | (55.60 N, 13.05 E), Starting Point | (55.60 N, 13.10 E), Bicycle |
(55.55 N, 13.00 E), Transit | (55.55 N, 13.05 E), Driving | (55.55 N, 13.10 E), Bicycle |
The app will check more directions, depending on the internet connection speed for the device (future functionality).
No comments:
Post a Comment