[geocode-glib] lib: Slightly improved accuracy estimates



commit 4dc187b56e5a73169e3c9e4e72c230fb697cbde7
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Sat Apr 13 21:00:23 2013 +0300

    lib: Slightly improved accuracy estimates
    
    When I added these:
    
    1. For city, I was thinking of diameter rather than radius.
    2. For country, I did some miscalculations as 150 km is too small.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=697962

 geocode-glib/geocode-location.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/geocode-glib/geocode-location.h b/geocode-glib/geocode-location.h
index e59d5fb..ff8a8b0 100644
--- a/geocode-glib/geocode-location.h
+++ b/geocode-glib/geocode-location.h
@@ -63,9 +63,9 @@ struct _GeocodeLocationClass {
 
 #define GEOCODE_LOCATION_ACCURACY_UNKNOWN   -1
 #define GEOCODE_LOCATION_ACCURACY_STREET    1000    /*    1 km */
-#define GEOCODE_LOCATION_ACCURACY_CITY      25000   /*   25 km */
+#define GEOCODE_LOCATION_ACCURACY_CITY      15000   /*   15 km */
 #define GEOCODE_LOCATION_ACCURACY_REGION    50000   /*   50 km */
-#define GEOCODE_LOCATION_ACCURACY_COUNTRY   150000  /*  150 km */
+#define GEOCODE_LOCATION_ACCURACY_COUNTRY   300000  /*  300 km */
 #define GEOCODE_LOCATION_ACCURACY_CONTINENT 3000000 /* 3000 km */
 
 #define GEOCODE_TYPE_LOCATION (geocode_location_get_type ())


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