Skip to content

Commit

Permalink
minor bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
paschalis-mpeis committed Oct 25, 2021
1 parent 3bcc9a5 commit 3df45dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/public/shared/js/anyplace-core-js/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,12 @@ var regex_ck_lon = /^(-?(?:1[0-7]|[1-9])?\d(?:\.\d{1,18})?|180(?:\.0{1,18})?)$/;
/**
* accepts coordinates in google maps format:
* @param str e.g., '57.693431580156464, 11.913933480401484'
*
* @returns {{}|null}
*/
function get_coordinates(str){
LOG.D4("get_coordinates: " + str)
let spaces = str.split(" ");
var spaces = str.split(" ");
if (spaces.length === 2) {
var lat = spaces[0].slice(0, -1); // remove last comma
var lon = spaces[1]
Expand Down

0 comments on commit 3df45dd

Please sign in to comment.