Exemple #1
0
        private static void Match5x(Osrm5x osrm)
        {
            var locations = new Location[] {
                new Location(52.517037, 13.388860),
                new Location(52.529407, 13.397634),
                new Location(52.523219, 13.428555)
            };

            var request = new Osrm.Client.Models.MatchRequest()
            {
                Coordinates = locations
            };

            var result = osrm.Match(request);
        }
Exemple #2
0
 public Osrm.Client.Models.Responses.MatchResponse Match(Osrm.Client.Models.MatchRequest requestParams)
 {
     return(Send <Osrm.Client.Models.Responses.MatchResponse>(MatchServiceName, requestParams));
 }
Exemple #3
0
 public async Task <Models.Responses.MatchResponse> MatchAsync(Osrm.Client.Models.MatchRequest requestParams)
 {
     return(await SendAsync <Osrm.Client.Models.Responses.MatchResponse>(MatchServiceName, requestParams));
 }