pub struct Response {
pub id: Option<String>,
pub shape: Option<Vec<ShapePoint>>,
pub encoded_polyline: Option<String>,
pub range_height: Vec<Option<(f64, Option<f64>)>>,
pub x_coordinate: Option<f64>,
pub y_coordinate: Option<f64>,
pub height: Vec<f32>,
pub warnings: Vec<Value>,
}
Expand description
Response to the request.
Fields§
§id: Option<String>
Name of the route request.
If id is specified via Manifest::id
the naming will be sent through to the response.
shape: Option<Vec<ShapePoint>>
The specified shape coordinates from the input request.
None
if requested enabled via Manifest::shape
encoded_polyline: Option<String>
The specified encoded polyline, with six degrees of precision, coordinates from the input request.
None
if requested enabled via Manifest::encoded_polyline
range_height: Vec<Option<(f64, Option<f64>)>>
The 2D array of range (x) and height (y) per input latitude, longitude coordinate.
None
if not enabled via Manifest::include_range
x_coordinate: Option<f64>
The range or distance along the input locations.
It is the cumulative distance along the previous latitiude, longitude coordinates up to the current coordinate. The x-value for the first coordinate in the shape will always be 0.
y_coordinate: Option<f64>
The height or elevation of the associated latitude, longitude pair.
The height is returned as null if no height data exists for a given location.
height: Vec<f32>
An array of height for the associated latitude, longitude coordinates.
warnings: Vec<Value>
This array may contain warning objects informing about deprecated
- request parameters,
- clamped values
- etc.