Module: FastPolylines::Encoder

Defined in:
lib/fast_polylines.rb

Class Method Summary collapse

Class Method Details

.encode(points, precision = 1e5) ⇒ Object

Deprecated.

Use FastPolylines.encode instead.


7
8
9
10
11
# File 'lib/fast_polylines.rb', line 7

def self.encode(points, precision = 1e5)
  warn "Deprecated use of `FastPolylines::Encoder.encode`, " \
       "use `FastPolylines.encode`."
  FastPolylines.encode(points, Math.log10(precision))
end