Show / Hide Table of Contents

Class Shape

Represents rules for drawing lines on a map to represent a transit organization's routes.

Inheritance
System.Object
GTFSEntity
Shape
Inherited Members
GTFSEntity.Tag
GTFSEntity.EntityChanged
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class Shape : GTFSEntity

Properties

DistanceTravelled

Gets or sets the distance traveled along a shape from the first shape point.

Declaration
public double ? DistanceTravelled { get; set; }
Property Value
System.Nullable<System.Double>

Id

Gets or sets an ID that uniquely identifies a shape.

Declaration
public string Id { get; set; }
Property Value
System.String

Latitude

Gets or sets a shape point's latitude with a shape ID. The field value must be a valid WGS 84 latitude. Each row in shapes.txt represents a shape point in your shape definition.

Declaration
public double Latitude { get; set; }
Property Value
System.Double

Longitude

Gets or sets a shape point's longitude with a shape ID. The field value must be a valid WGS 84 longitude value from -180 to 180. Each row in shapes.txt represents a shape point in your shape definition.

Declaration
public double Longitude { get; set; }
Property Value
System.Double

Sequence

Gets or sets the sequence order along the shape. The values for shape_pt_sequence must be non-negative integers, and they must increase along the trip.

Declaration
public uint Sequence { get; set; }
Property Value
System.UInt32

Methods

Equals(Object)

Returns true if the given object contains the same data.

Declaration
public override bool Equals(object obj)
Parameters
System.Object obj

Returns
System.Boolean

Overrides
System.Object.Equals(System.Object)

GetHashCode()

Serves as a hash function.

Declaration
public override int GetHashCode()
Returns
System.Int32

Overrides
System.Object.GetHashCode()

ToString()

Returns a description of this shapepoint.

Declaration
public override string ToString()
Returns
System.String

Overrides
System.Object.ToString()
Back to top Built by Itinero, MIT licensed.