I recently created a UML Activity diagram for a part of my app that calculates length and time for a selected road
So the user will indicate his destination and the app will send his current location with destination to Directions API that will calculate the length and time of course this operation will be done if there is an internet connection.