]> err.no Git - mapper/blobdiff - src/latlon.c
GpsBluez: cleanups
[mapper] / src / latlon.c
index 1ce5b6a20b54e22ef784e5cca32871dabb4271af..dceab08620fb891e04f71b8390c440e86507dae3 100644 (file)
 #include "latlon.h"
 #include "osm.h"
 
-/* Int ranges for integerized lat/lon */
-#define LATLON_MAX 2147483646
-#define LATLON_MIN -2147483646
-
-#define EARTH_RADIUS (3440.06479f)
-
 void
 latlon_init(void)
 {
@@ -154,13 +148,13 @@ return lrint(lon/180*LATLON_MAX);
 }
 
 gdouble
-mp_int2lon(gint lon)
+mp_int2lon(gint32 lon)
 {
 return (gdouble)lon/LATLON_MAX*180;
 }
 
 gdouble
-mp_int2lat(gint lat)
+mp_int2lat(gint32 lat)
 {
 return 0;
 }