end: A starting and ending address where you would like to drive. It could be a city name, a street address or even a point of interest, such as:
accuracy: Since real-world GPS devices are not perfect, we will need to simulate the defects as well. Accuracy specifies how much maximum accuracy we should provide when simulating coordinates. In simple words, an accuracy of 5 meters specifies that the resulting coordinate could be anywhere within the 5-meter radius of the actual coordinate.
key: Provide your own Google maps direction key, if required.
drive()function is a JSON object, that’s why it is important to save this into a string with
JSON.stringify(). Here is what the output looks like:
drive()function, you could also pass the actual address in the parameter and it will convert that to a set of GPS coordinates. The accuracy of this could be still controlled by the accuracy parameter. The output of the location() function is following:
weather.humidity()functions will query weather API to get the current weather of a city. For example:
unit: 'f'as an argument.
memory()functions will return mock CPU and memory usages of a running system in percentage points.
min+max/2Upon each iteration, volatile will change by a minimum of 0 to a maximum of delta in either positive or negative direction from its last value.