Reworking assets
This commit is contained in:
parent
1e546f00b1
commit
30f9b0f557
201 changed files with 434 additions and 14696 deletions
10
resources/es6-orig/parse-location.js
vendored
Normal file
10
resources/es6-orig/parse-location.js
vendored
Normal 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};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue