Class: IWRoutingUtils

IWRoutingUtils

A utility class for static routing related methods.

new IWRoutingUtils()

Methods


getAddressFromObject(address)

Creates an instance of IWAddress from a JSON object as returned for oninputchecked events of IWRoutingManager.
Parameters:
Name Type Description
address object the address object
Returns:
Type
IWAddress

getRoutingProfiles(callback)

Returns an object containing all mobility (e.g. car, pedestrian) and traffic (e.g. events, flows) profiles which can be used for routing and navigation. This is an asynchronous request, so you have to specify a callback function which will be called with the result.

Example:

{"mobility": [
	{
		"name": "types_fast.txt",
		"de": "Auto schnell",
		"en": "Car fast"
	},
	{
		"name": "types_pedestrian.txt",
		"de": "Fußgänger",
		"en": "Pedestrian"
	},
	{
		"name": "types_truck.txt",
		"de": "LKW",
		"en": "Truck"
	}
],
"traffic": [
	{
		"name": "Events",
		"de": "Aktuelle Staumeldungen",
		"en": "Traffic Events"
	}
]
}
Parameters:
Name Type Description
callback function a function which will be called with the resulting object
Returns:
Type
Object

getVehicleProfiles()

Deprecated:
  • use IWRoutingUtils.getRoutingProfiles() instead to geet both mobility (vehicle) and traffic profiles