if (_gps->data.fix>1 && !force)
osm_set_way_range_from_speed(_gps->data.speed);
else
- osm_set_way_range(OSM_RANGE_WAY/4);
+ osm_set_way_range(OSM_RANGE_WAY/8);
osm_progress_set_widget(_db, _progress_item);
osm_get_location_data(ilat, ilon, _gps->data.heading, &map_loc);
osm_set_way_range_from_speed(gfloat speed)
{
if (speed>54.0)
- way_dist_range=OSM_RANGE_WAY*2;
+ way_dist_range=OSM_RANGE_WAY;
else
way_dist_range=OSM_RANGE_WAY-lrint((speed/4)*1000);
}
/* We are probably on the same way as last time */
if ( (dist>(gdouble)way_dist_range) || (fabs(heading-map_loc->heading)>10.0)) {
/* We have moved a large amount, check way again */
- g_printf("*** dist %f over range, checking again\n", dist);
+ g_debug("Distance %f > %f range or angle %f > 10.0, checking location",
+ dist, way_dist_range, fabs(heading-map_loc->heading));
osm_way_free(map_loc->street);
map_loc->street=osm_find_nearest_way(lat, lon);
check_place=TRUE;