gem. Helper

Methods

(static) createWaypointString(coordinates) → {string}

Create a string, ready to be added to the send url as a Waypoint parameter.

Parameters:
NameTypeDescription
coordinatesgem.core.Coordinates
Returns:

string ready for url.

Type: 
string

(static) generateDecodedGeoJsonPoint(inputCodedGeoJson) → {string}

Decode previously encoded geojson for url submission

Parameters:
NameTypeDescription
inputCodedGeoJsonstring

encoded geojson

Returns:
  • decoded geojson
Type: 
string

(static) generateEncodedGeoJsonPoint(coordinatesI, properties) → {string}

Parameters:
NameTypeDescription
coordinatesIgem.core.Coordinates

coordinates of the item

propertiesstring

json properites of the item

Returns:
  • returns encoded geojson item to be added to the send url
Type: 
string