This class contains utility methods. See theUtilities for the one and only one instance of this class
Gives an UUID conform to the rfc 4122 section 4.4
Transform a distance to a string
| Name | Type | Description |
|---|---|---|
| distance | Number | The distance in meters |
Transform a latitude to a string
| Name | Type | Description |
|---|---|---|
| lat | Number | The latitude |
Transform a latitude to a string with degree minutes and seconds
| Name | Type | Description |
|---|---|---|
| lat | Number | The latitude |
Transform a latitude + longitude to a string
| Name | Type | Description |
|---|---|---|
| latLng | Array of Number | The latitude and longitude |
Transform a latitude + longitude to a string with degree minutes and seconds
| Name | Type | Description |
|---|---|---|
| latLng | Array of Number | The latitude and longitude |
Transform a longitude to a string
| Name | Type | Description |
|---|---|---|
| lng | Number | The longitude |
Transform a longitude to a string with degree minutes and seconds
| Name | Type | Description |
|---|---|---|
| lng | Number | The longitude |
Transform a time to a string
| Name | Type | Description |
|---|---|---|
| time | Number | The time in seconds |
Transform a number to a string with degree minutes and seconds
| Name | Type | Description |
|---|---|---|
| number | Number | The number to transform |
Open a file
| Name | Type | Description |
|---|---|---|
| eventListener | Function or Object | A change event listener to use when the file is opened |
| acceptFileType | String | The extension of the file, included the dot. |
Save a string to a file
| Name | Type | Description |
|---|---|---|
| fileName | String | The file name |
| fileContent | String | The file content |
| fileMimeType | null or String | The mime type of the file. Default to 'text/plain' |
Test the availibility of the storage
| Name | Type | Description |
|---|---|---|
| type | String | The type of storage. Must be 'sessionStorage' or 'localStorage' |