Reworking assets

This commit is contained in:
Jonny Barnes 2019-07-13 18:05:50 +01:00
parent 1e546f00b1
commit 30f9b0f557
201 changed files with 434 additions and 14696 deletions

10
resources/es6-orig/parse-location.js vendored Normal file
View file

@ -0,0 +1,10 @@
//parse-location.js
//text = `POINT(lon lat)`
export default function parseLocation(text) {
let coords = /POINT\((.*)\)/.exec(text);
let parsedLongitude = coords[1].split(' ')[0];
let parsedLatitude = coords[1].split(' ')[1];
return {'latitude': parsedLatitude, 'longitude': parsedLongitude};
}