[geocode-glib] forward: expand railway station place type
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geocode-glib] forward: expand railway station place type
- Date: Mon, 28 Dec 2015 09:39:42 +0000 (UTC)
commit 0fa8247eae9bb122ae6edd9d437b2820e8525102
Author: Jonas Danielsson <jonas threetimestwo org>
Date: Tue Apr 15 12:41:11 2014 +0200
forward: expand railway station place type
Also include simpler train stops using the OSM 'halt' tag.
https://bugzilla.gnome.org/show_bug.cgi?id=728241
geocode-glib/geocode-forward.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/geocode-glib/geocode-forward.c b/geocode-glib/geocode-forward.c
index 446d6b5..d5c80f7 100644
--- a/geocode-glib/geocode-forward.c
+++ b/geocode-glib/geocode-forward.c
@@ -735,8 +735,9 @@ get_place_type_from_attributes (GHashTable *ht)
else
place_type = GEOCODE_PLACE_TYPE_STREET;
} else if (g_strcmp0 (category, "railway") == 0) {
- if (g_strcmp0 (type, "station") == 0)
- place_type = GEOCODE_PLACE_TYPE_RAILWAY_STATION;
+ if (g_strcmp0 (type, "station") == 0 ||
+ g_strcmp0 (type, "halt") == 0)
+ place_type = GEOCODE_PLACE_TYPE_RAILWAY_STATION;
} else if (g_strcmp0 (category, "waterway") == 0) {
place_type = GEOCODE_PLACE_TYPE_DRAINAGE;
} else if (g_strcmp0 (category, "boundary") == 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]