I have a WKT Polygon data string coming from the server which looks like this
POLYGON ((-79.9767 40.4887, -79.9718 40.4885, -79.9717 40.4888, -79.9722 40.4889, -79.9727 40.4883))
This is a 5 Point Polygon Each Lat,Long Point is separated by a comma, Like WKT Geometry Format
I want to Convert above WKT polygon data to List array of lat-longs, Something like this,
List<LatLng> points // I want above latlongs points to be stored inside it.
Is there any predefined method or function to do this ? Maybe in Google-Maps Utils? or I have to do manual string operations?