Request directions from Google's directions web service.

Namespace: Reimers.Google.Map.Geocoding
Assembly: Reimers.Google.Map (in Reimers.Google.Map.dll) Version: 5.3.95.699 (5.3.95.699)

Syntax

C#
IGeocodeResult GetDirections(
	string from,
	string to,
	TravelMode mode,
	Encoding encoding,
	CultureInfo language,
	bool showAlternatives
)

Parameters

from
Type: System..::..String
The departure address.
to
Type: System..::..String
The destination address.
mode
Type: Reimers.Core.Maps..::..TravelMode
The travel mode.
encoding
Type: System.Text..::..Encoding
Character encoding.
language
Type: System.Globalization..::..CultureInfo
Request directions in specific language.
showAlternatives
Type: System..::..Boolean
Provide alternative routes in the response.

Return Value

A IGeocodeResult object containing directions.

Remarks

Google's directions service is an undocumented feature and is subject to change without notice.

See Also