corrected method to get rating of coordinates around a coordinate for a distance
fixed bug in processing of raw data