Initial commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// Get coordinates from a GeoJSON
|
||||
|
||||
module.exports = function (geometry) {
|
||||
try {
|
||||
var geojson = JSON.parse(geometry);
|
||||
return geojson.coordinates.join(', ');
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user