From c28245afdfd0e4735ad909aac25696fd4c8bfed7 Mon Sep 17 00:00:00 2001 From: Bhawak Pokhrel Date: Mon, 22 Mar 2021 20:29:41 +0545 Subject: [PATCH] Included polystring to coordinate decoder --- BaatoSwift.podspec | 2 +- BaatoSwift/Model/Route Modals/GHDecoder.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BaatoSwift.podspec b/BaatoSwift.podspec index c3286c2..f513d1c 100644 --- a/BaatoSwift.podspec +++ b/BaatoSwift.podspec @@ -2,7 +2,7 @@ Pod::Spec.new do |spec| spec.name = "BaatoSwift" - spec.version = "0.1.9" + spec.version = "0.2.1" spec.summary = "This framework help to consume baato api." spec.description = <<-DESC Baato Swift is a framework developed for consuming the baato api efficiently. diff --git a/BaatoSwift/Model/Route Modals/GHDecoder.swift b/BaatoSwift/Model/Route Modals/GHDecoder.swift index bd431a8..b2d9464 100644 --- a/BaatoSwift/Model/Route Modals/GHDecoder.swift +++ b/BaatoSwift/Model/Route Modals/GHDecoder.swift @@ -1,13 +1,13 @@ import CoreLocation -internal final class DecoderPoly { +public class DecoderPoly { /** Special handling for the decoding of the encoded points string. - paramter encoded: The encoded string of points. - paramter is3D: Specifies if the points in the encoded string also contains elevation. */ - class func decodePoints(_ encoded: String, is3D: Bool = false) -> [CLLocationCoordinate2D] { + public class func decodePoints(_ encoded: String, is3D: Bool = false) -> [CLLocationCoordinate2D] { var points = [CLLocationCoordinate2D]() let enc = encoded.unicodeScalars let len = enc.count