[geocode-glib] lib: Add description to the result



commit a4a5f8c145f1030c4fa559447cac03552c8ea12f
Author: Bastien Nocera <hadess hadess net>
Date:   Sun Nov 25 01:04:20 2012 +0100

    lib: Add description to the result

 geocode-glib/geocode-forward.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/geocode-glib/geocode-forward.c b/geocode-glib/geocode-forward.c
index 48dc704..8446d25 100644
--- a/geocode-glib/geocode-forward.c
+++ b/geocode-glib/geocode-forward.c
@@ -111,7 +111,8 @@ _geocode_parse_single_result_json (const char  *contents,
 
 	longitude = g_ascii_strtod (g_hash_table_lookup (ht, "longitude"), NULL);
 	latitude = g_ascii_strtod (g_hash_table_lookup (ht, "latitude"), NULL);
-	loc = geocode_location_new (longitude, latitude);
+	loc = geocode_location_new_with_description (longitude, latitude,
+						     g_hash_table_lookup (ht, "line2"));
 
 	ret = g_list_append (NULL, loc);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]