495
495
address = geoclue_address_details_new ();
497
str = get_dup_string (location, EMPATHY_LOCATION_COUNTRY_CODE);
499
g_hash_table_insert (address,
500
g_strdup (GEOCLUE_ADDRESS_KEY_COUNTRYCODE), str);
501
DEBUG ("\t - countrycode: %s", str);
497
504
str = get_dup_string (location, EMPATHY_LOCATION_COUNTRY);
499
g_hash_table_insert (address, g_strdup ("country"), str);
506
g_hash_table_insert (address,
507
g_strdup (GEOCLUE_ADDRESS_KEY_COUNTRY), str);
508
DEBUG ("\t - country: %s", str);
501
511
str = get_dup_string (location, EMPATHY_LOCATION_POSTAL_CODE);
503
g_hash_table_insert (address, g_strdup ("postalcode"), str);
513
g_hash_table_insert (address,
514
g_strdup (GEOCLUE_ADDRESS_KEY_POSTALCODE), str);
515
DEBUG ("\t - postalcode: %s", str);
518
str = get_dup_string (location, EMPATHY_LOCATION_REGION);
520
g_hash_table_insert (address,
521
g_strdup (GEOCLUE_ADDRESS_KEY_REGION), str);
522
DEBUG ("\t - region: %s", str);
505
525
str = get_dup_string (location, EMPATHY_LOCATION_LOCALITY);
507
g_hash_table_insert (address, g_strdup ("locality"), str);
527
g_hash_table_insert (address,
528
g_strdup (GEOCLUE_ADDRESS_KEY_LOCALITY), str);
529
DEBUG ("\t - locality: %s", str);
509
532
str = get_dup_string (location, EMPATHY_LOCATION_STREET);
511
g_hash_table_insert (address, g_strdup ("street"), str);
534
g_hash_table_insert (address,
535
g_strdup (GEOCLUE_ADDRESS_KEY_STREET), str);
536
DEBUG ("\t - street: %s", str);
513
539
g_object_ref (contact);
514
540
geoclue_geocode_address_to_position_async (geocode, address,