From 1f4b2854000a9d62f9cc5a425cbb378ec3678565 Mon Sep 17 00:00:00 2001 From: Alban Browaeys Date: Tue, 13 Dec 2011 09:56:32 -0500 Subject: 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 file changed, 4 insertions(+), 2 deletions(-) (limited to 'widgets/misc') diff --git a/widgets/misc/e-contact-map.c b/widgets/misc/e-contact-map.c index ced6c91376..b2f6ff591e 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, -- cgit v1.2.3