def encode
      return @encoded if @encoded

      deltas = @delta.deltas_rounded @array_of_lat_lng_pairs
      chars_array = deltas.map { |v| @value_encoder.encode v }

      @encoded = chars_array.join
    end
def encode
      return @encoded if @encoded

      deltas = @delta.deltas_rounded @array_of_lat_lng_pairs
      chars_array = deltas.map { |v| @value_encoder.encode v }

      @encoded = chars_array.join
    end
Initialize a new encoder

 Arguments
   array_of_lat_lng_pairs    - The array of lat/lng pairs, like [[lat, lng], [lat, lng], ..etc]
   delta                     - An object responsible for rounding and calculate the deltas
                               between the given lat/lng pairs.
   value_encoder             - After deltas are calculated each value is passed to the encoder
                               to be encoded in to ASCII characters

 @see ::encode
 Encode and returns the encoded string