Then we need another horizontal division which contains four buttons.
And we use these four buttons to control the web viewer component.
And finally, we need a web viewer component and a location sensor component.
Okay, now, these are the blocks we need for this application.
When we click on the Use Location button, then we
want to use the current location as the soft location or the destination location.
Then we will use the LocationSensor component to check whether we can
get the longitude and latitude parameters from the mobile device.
If we can successfully get the information, then we'll use the current
longitude and latitude as the source location or the destination location.
And we start the longitude and latitude using a text box.
Otherwise, we would just say that we cannot get the current location.
[MUSIC]
And then when we click on the use address button and we want to use
the current address as the source location or the destination location,
then we try to get the current address using location sensor component.
And use the current address as the source location or the destination location.