[evolution] Bug 665981 - Use OpenStreetMap geoclue provider
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 665981 - Use OpenStreetMap geoclue provider
- Date: Tue, 13 Dec 2011 15:05:54 +0000 (UTC)
commit 1f4b2854000a9d62f9cc5a425cbb378ec3678565
Author: Alban Browaeys <prahal yahoo com>
Date: Tue Dec 13 09:56:32 2011 -0500
Bug 665981 - Use OpenStreetMap geoclue provider
Use the OpenStreetMap geoclue provider instead of the deprecated and
likely disabled Yahoo geoclue v1 API.
Requires geoclue >= 0.12.
widgets/misc/e-contact-map.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/widgets/misc/e-contact-map.c b/widgets/misc/e-contact-map.c
index ced6c91..b2f6ff5 100644
--- a/widgets/misc/e-contact-map.c
+++ b/widgets/misc/e-contact-map.c
@@ -75,6 +75,7 @@ contact_map_geocode_address (EContactAddress *address)
details = geoclue_address_details_new ();
g_hash_table_insert (details, g_strdup (GEOCLUE_ADDRESS_KEY_POSTALCODE), g_strdup (address->code));
g_hash_table_insert (details, g_strdup (GEOCLUE_ADDRESS_KEY_COUNTRY), g_strdup (address->country));
+ g_hash_table_insert (details, g_strdup (GEOCLUE_ADDRESS_KEY_REGION), g_strdup (address->region));
g_hash_table_insert (details, g_strdup (GEOCLUE_ADDRESS_KEY_LOCALITY), g_strdup (address->locality));
g_hash_table_insert (details, g_strdup (GEOCLUE_ADDRESS_KEY_STREET), g_strdup (address->street));
@@ -169,8 +170,9 @@ resolve_marker_position (EContactMap *map,
* is resolved */
g_object_ref (map);
- geocoder = geoclue_geocode_new ("org.freedesktop.Geoclue.Providers.Yahoo",
- "/org/freedesktop/Geoclue/Providers/Yahoo");
+ geocoder = geoclue_geocode_new (
+ "org.freedesktop.Geoclue.Providers.Nominatim",
+ "/org/freedesktop/Geoclue/Providers/Nominatim");
geoclue_geocode_address_to_position_async (geocoder, details,
(GeoclueGeocodeCallback) contact_map_address_resolved_cb,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]