if (_speed_limit_on)
speed_limit();
- map_update_location(_pos.unitx, _pos.unity);
+ if (_center_mode>0)
+ map_update_location(_pos.unitx, _pos.unity);
vprintf("%s(): return\n", __PRETTY_FUNCTION__);
}
mplace.name=NULL;
splace.name=NULL;
-street=osm_find_nearest_way(ilat, ilon);
-if (street)
- g_printf("WAY: %d %s %s\n", street->id, street->name, street->ref);
-
p=poi_find_nearest(lat, lon);
-
-if (osm_find_nearest_place(NODE_PLACE_SUBURB, ilat, ilon, &splace)==TRUE)
- g_printf("Near suburb: %s (%d)\n", splace.name, splace.isin);
+street=osm_find_nearest_way(ilat, ilon);
+osm_find_nearest_place(NODE_PLACE_SUBURB, ilat, ilon, &splace);
if (splace.isin!=0) {
if (osm_place_get(splace.isin, ilat, ilon, &mplace)==FALSE) {