1 | var turfBBoxPolygon = require('turf-bbox-polygon');
|
2 |
|
3 | module.exports = {
|
4 | 'getPolygon': function(bboxString) {
|
5 | // TODO: Add error handling
|
6 | var points = bboxString.split(',').map(function(pt) {
|
7 | return parseFloat(pt);
|
8 | });
|
9 | return turfBBoxPolygon(points);
|
10 | }
|
11 | }; |
\ | No newline at end of file |