lib/util/convertGeopoint.js
function fromString(str) {
  let 
    tmp = str.match(regexLatLon),
    converted = null;

  // Format: "latitude, longitude"
  if (tmp !== null) {
    converted = toCoordinate(tmp[1], tmp[2]);
  }
  // Format: "<geohash>"
  else if (regexGeohash.test(str)) {
    tmp = geohash.decode(str);
    converted = toCoordinate(tmp.latitude, tmp.longitude);
  }

  return converted;
}
function fromString(str) {
  let 
    tmp = str.match(regexLatLon),
    converted = null;

  // Format: "latitude, longitude"
  if (tmp !== null) {
    converted = toCoordinate(tmp[1], tmp[2]);
  }
  // Format: "<geohash>"
  else if (regexGeohash.test(str)) {
    tmp = geohash.decode(str);
    converted = toCoordinate(tmp.latitude, tmp.longitude);
  }

  return converted;
}
function fromString ( str ) { let tmp = str . match ( regexLatLon ) , converted = null ; // Format: "latitude, longitude" if ( tmp !== null ) { converted = toCoordinate ( tmp [ 1 ] , tmp [ 2 ] ) ; } // Format: "<geohash>" else if ( regexGeohash . test ( str ) ) { tmp = geohash . decode ( str ) ; converted = toCoordinate ( tmp . latitude , tmp . longitude ) ; } return converted ; }
Converts a geopoint from a string description

@param  {string} str
@return {Coordinate}
Converts a geopoint from a string description