Class OSRM
Routing service using project-osrm.org.
Inheritance
System.Object
OSRM
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: TimeCockpit.Data.Geolocation.OSM
Assembly: TimeCockpit.Data.dll
Syntax
public class OSRM
Constructors
OSRM(String)
Initializes a new instance of the OSRM class.
Declaration
public OSRM(string osrmBaseUri)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | osrmBaseUri | Service base uri. e.g. https://router.project-osrm.org/ |
Properties
UserAgent
Gets or sets the optional, custom user agent.
Declaration
public string UserAgent { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
GetRoute(Decimal, Decimal, Decimal, Decimal)
Tries to resolve a route between two locations.
Declaration
public Route GetRoute(decimal latitude1, decimal longitude1, decimal latitude2, decimal longitude2)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Decimal | latitude1 | First latitude in decimal degrees. |
| System.Decimal | longitude1 | First longitude in decimal degrees. |
| System.Decimal | latitude2 | Second latitude in decimal degrees. |
| System.Decimal | longitude2 | Second longitude in decimal degrees. |
Returns
| Type | Description |
|---|---|
| Route | Returns the resulting route. |