lgtm
This commit is contained in:
parent
11711c57e6
commit
81a16f543c
21 changed files with 29072 additions and 1913 deletions
|
|
@ -27,14 +27,14 @@ fn type_rank(place_type: &str) -> u8 {
|
|||
"town" => 1,
|
||||
"village" => 2,
|
||||
"suburb" | "neighbourhood" | "quarter" | "borough" | "locality" => 3,
|
||||
"station" => 4,
|
||||
"station" | "university" => 4,
|
||||
"hamlet" | "isolated_dwelling" | "island" => 5,
|
||||
_ => 6,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_travel_destination_type(place_type: &str) -> bool {
|
||||
matches!(place_type, "city" | "station")
|
||||
matches!(place_type, "city" | "station" | "university")
|
||||
}
|
||||
|
||||
pub fn normalize_search_text(text: &str) -> String {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue