fixed last warning enum convertion
return warnings around 1 kilometer
fixed compare of warn by distance