private async Task <Coordinate> GetCoordinate(CoordinateOrLocation coordinateOrLocation)
        {
            if (coordinateOrLocation.Coordinate != null)
            {
                return(coordinateOrLocation.Coordinate);
            }

            return(await _hereService.GetCoordinate(coordinateOrLocation.LocationId));
        }
예제 #2
0
 public async Task <Coordinate> GetCoordinate([FromBody] LocationIdModel model)
 {
     return(await _hereService.GetCoordinate(model?.LocationId));
 }