Show / Hide Table of Contents

Class Distance

A representation of distance as a numeric value and a display string.

Inheritance
System.Object
Distance
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:GoogleMaps.Directions
Assembly:GoogleMaps.dll
Syntax
public class Distance : IScriptDescriptorData

Properties

Text

A string representation of the distance value, using the UnitSystem specified in the request.

Declaration
public string Text { get; set; }
Property Value
Type Description
System.String

Value

The distance in meters.

Declaration
public int Value { get; set; }
Property Value
Type Description
System.Int32

Methods

FromScriptData(Object)

Retrieves an instance from script data.

Declaration
public static Distance FromScriptData(object scriptObject)
Parameters
Type Name Description
System.Object scriptObject

The script object.

Returns
Type Description
Distance

ToScriptData()

Returns the instance as a script data.

Declaration
public IDictionary<string, object> ToScriptData()
Returns
Type Description
System.Collections.Generic.IDictionary<System.String, System.Object>
Implements
IScriptDescriptorData.ToScriptData()
Back to top Copyright © 2017 GoogleMapControl
Generated by DocFX