Struct bingmaps::locations::Location
[−]
[src]
pub struct Location { pub name: String, pub point: Point, pub bbox: Vec<f64>, pub entity_type: EntityType, pub address: Address, pub confidence: Confidence, pub match_codes: Vec<MatchCode>, }
Fields
name: String
point: Point
bbox: Vec<f64>
A geographic area that contains the location. The box is defined by [South Latitude, West Longitude, North Latitude, East Longitude].
entity_type: EntityType
address: Address
confidence: Confidence
match_codes: Vec<MatchCode>
Methods
impl Location
[src]
fn find_by_point(
client: &Client,
find: FindPoint
) -> Result<Vec<Location>, Error>
client: &Client,
find: FindPoint
) -> Result<Vec<Location>, Error>
Gets the location information associated with latitude and longitude coordinates.
fn find_by_query(client: &Client, query: &str) -> Result<Vec<Location>, Error>
Gets latitude and longitude coordinates that correspond to location information provided as a query string.