onaio / kujaku

Mapping and check-in library for Android using MapBox SDK
https://ona.io
BSD 2-Clause "Simplified" License
18 stars 13 forks source link

Provide utils for generating farthest bounds from polygon and a list of points #215

Closed ekigamba closed 5 years ago

ekigamba commented 5 years ago

The aim of this issue is to assist host applications that have a polygons/multi-polygon to generate the outer bounds. These bounds are going to be used to request for offline map downloads of such an area

~- [x] Generate bounds from an array/list of points~

ekigamba commented 5 years ago

It seems that this functionality is already provided in com.mapbox.turf.TurfMeasurement under the bbox methods.

I will probably just add a sample activity showing how to use this