Methods

Positioning

nome.getLatitude()
Return Values
Returns an integer value of the users latitude to six decimal points
25
nome.getLongitude()
Return Values
Returns an integer value of the users latitude to six decimal points
55
nome.getDistance( unit )
Return Values
Returns an float value calculated from setLocation() without distance abbreviation. If setLocation() has not been set then a zero value will be returned.
3,000km
Parameters

K
Kilometers

M
Miles

N
Nautical Miles

nome.getAccuracy()
Return Values
Returns an integer value of the accuracy return geolocation data.
18000
nome.getCountry()
Return Values
Returns a two character ISO-3391 country code.
UK

Motion

nome.getOrientation( unit )
Return Values
Returns an integer value of the orientation from current users device orientation in 3D space.
Beta: 23Gamma: 23Alpha: 23
Parameters

B
Beta

G
Gamma

A
Alpha

nome.getRotation( unit )
Return Values
Returns an integer value based on the current rotation of the users device in 3D space.
Beta: 0Gamma: 0Alpha: 0
Parameters

B
Beta

G
Gamma

A
Alpha

nome.getAcceleration( unit )
Return Values
Returns an integer value of the acceleration of users device orientation in 3D space.
X: 0Y: 0Z: 0
Parameters

X
X acceleration

Y
Y acceleration

Z
Z acceleration

nome.getAccelerationGravity( unit )
Return Values
Returns an integer value of the acceleration of users device orientation in 3D space including the effects of gravity.
X: 0Y: 0Z: 0
Parameters

X
X acceleration

Y
Y acceleration

Z
Z acceleration

Time

nome.hours()
Return Values
Returns an integer value of the hour from current users time.
23
nome.mins()
Return Values
Returns an integer value of the minutes from current users time.
59
nome.secs()
Return Values
Returns an integer value of the seconds from current users time.
01

Weather

nome.getTemperature( unit )
Return Values
Returns an integer value without mark
30°C
Parameters

C
Celcius

F
Farenheit

Options

nome.weatherFeed( true | true | void )
Return Values
when called with no parameters returns true if feed is active false is feed is non active.
Parameters

true
Sets weather data to be active and returned on invoking nome

false
Weather data is not retrieved

nome.setLocation( lat , lng )
Return Values
This method returns no value
Parameters

To use distance functions with nome you need to set a location of your nome instance. The position can be any location with a latitude and longitude. Use this function before the .ready()

lat
Latitude value of you / your business

lng
Longitude value of you / your business

nome.ready( function )
Return Values
This method returns no value
Parameters

Nome is an event driven class which retrieves data from different data sources on average this delay will be around 650 miliseconds. To make sure all data is ready to be worked with the .ready() method will call your function when all data is ready (exactly the same as the way jQuery does it!)

function
Callback function

nome.calcDistance( lat1 , lng1 , lat2 , lng2, unit )
Return Values
Returns an float value calculated to unit distance, without distance abbreviation.
3,000km
Parameters

Nome is an event driven class which retrieves data from different data sources on average this delay will be around 650 miliseconds. To make sure all data is ready to be worked with the .ready() method will call your function when all data is ready (exactly the same as the way jQuery does it!)

lat1
Latitude

lng1
Longitude

lat2
Latitude

lng2
Longitude

unit
Character - ("K" kilometers | "M" miles | "N" Nautical Miles)