Table of Contents

Class OSRM

Namespace
TimeCockpit.Data.Geolocation.OSM
Assembly
TimeCockpit.Data.dll

Routing service using project-osrm.org.

public class OSRM
Inheritance
Object
OSRM
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

Constructors

OSRM(String)

Initializes a new instance of the OSRM class.

public OSRM(string osrmBaseUri)

Parameters

osrmBaseUri String

Service base uri. e.g. https://router.project-osrm.org/

Properties

UserAgent

Gets or sets the optional, custom user agent.

public string UserAgent { get; set; }

Property Value

String

Methods

GetRoute(Decimal, Decimal, Decimal, Decimal)

Tries to resolve a route between two locations.

public Route GetRoute(decimal latitude1, decimal longitude1, decimal latitude2, decimal longitude2)

Parameters

latitude1 Decimal

First latitude in decimal degrees.

longitude1 Decimal

First longitude in decimal degrees.

latitude2 Decimal

Second latitude in decimal degrees.

longitude2 Decimal

Second longitude in decimal degrees.

Returns

Route

Returns the resulting route.