create
Creates new instances of NavigationRoute based on the routes found in the directionsResponse.
Should not be called from UI thread. Contains serialisation and deserialisation under the hood.
Parameters
response to be parsed into NavigationRoutes
options used to generate the directionsResponse
Creates new instances of NavigationRoute based on the routes found in the directionsResponse.
Should not be called from UI thread. Contains serialisation and deserialisation under the hood.
Parameters
response to be parsed into NavigationRoutes
options used to generate the directionsResponse
origin where route was fetched from
Creates new instances of NavigationRoute based on the routes found in the directionsResponseJson.
Should not be called from UI thread. Contains serialisation and deserialisation under the hood.
Parameters
response to be parsed into NavigationRoutes
URL used to generate the directionsResponse
Throws
if directionsResponseJson
is invalid
Creates new instances of NavigationRoute based on the routes found in the directionsResponseJson.
Should not be called from UI thread. Contains serialisation and deserialisation under the hood.
Parameters
response to be parsed into NavigationRoutes
URL used to generate the directionsResponse
origin where route was fetched from
Throws
if directionsResponseJson
is invalid