Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
lnicola committed Jan 12, 2025
1 parent 1c75ad2 commit 64a01f3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pub enum GeocodingError {
/// let res = oc.reverse(&p).unwrap();
/// assert_eq!(
/// res,
/// Some("Carrer de Calatrava, 68, 08017 Barcelona, Spain".to_string())
/// Some("Carrer de Calatrava, 64, 08017 Barcelona, Spain".to_string())
/// );
/// ```
pub trait Reverse<T>
Expand Down
10 changes: 5 additions & 5 deletions src/opencage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
//! oc.parameters.language = Some("fr");
//! let p = Point::new(2.12870, 41.40139);
//! let res = oc.reverse(&p);
//! // "Carrer de Calatrava, 68, 08017 Barcelone, Espagne"
//! // "Carrer de Calatrava, 64, 08017 Barcelone, Espagne"
//! println!("{:?}", res.unwrap());
//! ```
use crate::DeserializeOwned;
Expand Down Expand Up @@ -476,15 +476,15 @@ where
/// "country": "Spain",
/// "country_code": "es",
/// "county": "BCN",
/// "house_number": "68",
/// "house_number": "64",
/// "political_union": "European Union",
/// "postcode": "08017",
/// "road": "Carrer de Calatrava",
/// "state": "Catalonia",
/// "suburb": "les Tres Torres"
/// },
/// "confidence": 10,
/// "formatted": "Carrer de Calatrava, 68, 08017 Barcelona, Spain",
/// "formatted": "Carrer de Calatrava, 64, 08017 Barcelona, Spain",
/// "geometry": {
/// "lat": 41.4014067,
/// "lng": 2.1287224
Expand Down Expand Up @@ -644,7 +644,7 @@ mod test {
let res = oc.reverse(&p);
assert_eq!(
res.unwrap(),
Some("Carrer de Calatrava, 68, 08017 Barcelona, Spain".to_string())
Some("Carrer de Calatrava, 64, 08017 Barcelona, Spain".to_string())
);
}

Expand All @@ -656,7 +656,7 @@ mod test {
let res = oc.reverse(&p);
assert_eq!(
res.unwrap(),
Some("Carrer de Calatrava, 68, 08017 Barcelone, Espagne".to_string())
Some("Carrer de Calatrava, 64, 08017 Barcelone, Espagne".to_string())
);
}
#[test]
Expand Down
4 changes: 2 additions & 2 deletions src/openstreetmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,13 @@ where
/// "place_id": 263681481,
/// "osm_type": "way",
/// "osm_id": 355421084,
/// "display_name": "68, Carrer de Calatrava, les Tres Torres, Sarrià - Sant Gervasi, Barcelona, BCN, Catalonia, 08017, Spain",
/// "display_name": "64, Carrer de Calatrava, les Tres Torres, Sarrià - Sant Gervasi, Barcelona, BCN, Catalonia, 08017, Spain",
/// "place_rank": 30,
/// "category": "building",
/// "type": "apartments",
/// "importance": 0.7409999999999999,
/// "address": {
/// "house_number": "68",
/// "house_number": "64",
/// "road": "Carrer de Calatrava",
/// "suburb": "les Tres Torres",
/// "city_district": "Sarrià - Sant Gervasi",
Expand Down

0 comments on commit 64a01f3

Please sign in to comment.