How to get buffer polygon coordinates (latitude and longitude) in iOS?
<p>I have created one polygon on map with some set of coordinates. 
I need help regarding making one buffered polygon with some given distance outside of original polygon border.</p>

<p>so what i need a method with such algorithm in which i pass set of coordinates as input and should get buffered set of coordinates as output. </p>

<p>I tried to achieve this by using arcgis library for ios with bufferGeometry method of AGSGeometryEngine but problem is, this is tightly coupled and only will work their GIS Map but I am using Mapbox which is different Map. So I want one generic method which can resolve my problem independent to map.</p>

<p><a href="https://i.stack.imgur.com/piY2D.png" rel="noreferrer"><img src="https://i.stack.imgur.com/piY2D.png" alt="enter image description here"></a></p>