/*
* Naurt API
*
* OpenAPI specification for Naurt's APIs.
*
* The version of the OpenAPI document: 0.1.4
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// FinalDestinationLocation : A location, using WGS84 latitude and longitude. Used for a reverse geocode, or to add some location bias to a forward geocode. Use `distance_filter` to optionally limit the distance from this point that results can appear within
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FinalDestinationLocation {
#[serde(rename = "latitude")]
pub latitude: f64,
#[serde(rename = "longitude")]
pub longitude: f64,
#[serde(rename = "distance_filter", skip_serializing_if = "Option::is_none")]
pub distance_filter: Option<f64>,
}
impl FinalDestinationLocation {
/// A location, using WGS84 latitude and longitude. Used for a reverse geocode, or to add some location bias to a forward geocode. Use `distance_filter` to optionally limit the distance from this point that results can appear within
pub fn new(latitude: f64, longitude: f64) -> FinalDestinationLocation {
FinalDestinationLocation {
latitude,
longitude,
distance_filter: None,
}
}
}