anchor.diff:      % Convert the distance to a float
       DistV = try list_to_float(DistDig)
       catch
  -        _ -> error
  +        error:_ ->
  +            try list_to_integer(DistDig)
  +            catch
  +                error:_ -> error
  +            end
       end,
   
       % Switch on the units
  
positive.code:                 InvalidLatLng ->
                      gen_tcp:send(Sock, ?BAD_LATLNG);
  
                  not is_integer(K) or K < 1 ->
                      gen_tcp:send(Sock, <<"Client Error: Bad K format\n">>);
  
                  true ->
  
negative.code:                 InvalidLatLng ->
                      gen_tcp:send(Sock, ?BAD_LATLNG);
  
                  MinLat > MaxLat orelse MinLng > MaxLng ->
                      gen_tcp:send(Sock, ?BAD_LATLNG);
  
                  true ->
                      Box = #geometry{dimensions=2, mbr=[{MinLat, MaxLat}, {MinLng, MaxLng}]},
                      {ok, Results} = teles_data_manager:query_within(Sp, Box),
  