function createArrayOfPointCoordinates(pointsJson) {
let pointsCoordinatesArray = [];
let pointsFeatures = pointsJson.features;
for (let i = 0; i < pointsFeatures.length; i++) {
let pointsFeature = pointsFeatures[i];
if (pointsFeature.geometry != null) {
let pointsFeaturesCoordinates = pointsFeature.geometry.coordinates;
pointsCoordinatesArray.push(pointsFeaturesCoordinates);
}
}
return pointsCoordinatesArray;
}