[geocode-glib] forward: Include airport place type in results
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geocode-glib] forward: Include airport place type in results
- Date: Thu, 27 Mar 2014 18:34:50 +0000 (UTC)
commit 7eb14903833a5897466e4585c2b07d1a47681f14
Author: Jonas Danielsson <jonas threetimestwo org>
Date: Wed Mar 26 22:19:28 2014 +0100
forward: Include airport place type in results
https://bugzilla.gnome.org/show_bug.cgi?id=725899
geocode-glib/geocode-forward.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/geocode-glib/geocode-forward.c b/geocode-glib/geocode-forward.c
index 6e01b2c..4256fe8 100644
--- a/geocode-glib/geocode-forward.c
+++ b/geocode-glib/geocode-forward.c
@@ -755,6 +755,9 @@ get_place_type_from_attributes (GHashTable *ht)
else if (g_strcmp0 (type, "bar") == 0 ||
g_strcmp0 (type, "pub") == 0)
place_type = GEOCODE_PLACE_TYPE_BAR;
+ } else if (g_strcmp0 (category, "aeroway") == 0) {
+ if (g_strcmp0 (type, "aerodrome") == 0)
+ place_type = GEOCODE_PLACE_TYPE_AIRPORT;
}
return place_type;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]