Class TripPositionCoordinateConverter
Inheritance
System.Object
TripPositionCoordinateConverter
Namespace: SOHMultimodalModel.Output.Trips
Assembly: SOHMultimodalModel.dll
Syntax
public class TripPositionCoordinateConverter : CoordinateConverter
Methods
CanConvert(Type)
Predicate function to check if an instance of
objectType
can be converted using this converter.
Declaration
public override bool CanConvert(Type objectType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | objectType | The type of the object to convert |
Returns
Type | Description |
---|---|
System.Boolean |
|
WriteJson(JsonWriter, Object, JsonSerializer)
Writes a coordinate, a coordinate sequence or an enumeration of coordinates to JSON
Declaration
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
JsonWriter | writer | The writer |
System.Object | value | The coordinate |
JsonSerializer | serializer | The serializer |
WriteJsonCoordinate(JsonWriter, Coordinate, JsonSerializer)
Writes a single coordinate to JSON
Declaration
protected static void WriteJsonCoordinate(JsonWriter writer, Coordinate coordinate, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
JsonWriter | writer | The writer |
Coordinate | coordinate | The coordinate |
JsonSerializer | serializer | The serializer |