diff options
author | Alban Browaeys <prahal@yahoo.com> | 2011-12-13 22:56:32 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-12-13 22:56:32 +0800 |
commit | 1f4b2854000a9d62f9cc5a425cbb378ec3678565 (patch) | |
tree | fff82eb294b5225d52c5435c74ff0cccaefdca8e /widgets | |
parent | 55ade610eab71c04195463d0d42b408e06bc7f4f (diff) | |
download | gsoc2013-evolution-1f4b2854000a9d62f9cc5a425cbb378ec3678565.tar.gz gsoc2013-evolution-1f4b2854000a9d62f9cc5a425cbb378ec3678565.tar.zst gsoc2013-evolution-1f4b2854000a9d62f9cc5a425cbb378ec3678565.zip |
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.
Diffstat (limited to 'widgets')
-rw-r--r-- | 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 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, |