Return ValuesReturns an integer value of the acceleration of users device orientation in 3D space including the effects of gravity.X: 0Y: 0Z: 0

Parameters

XX acceleration

YY acceleration

ZZ acceleration

Time

nome.hours()

Return ValuesReturns an integer value of the hour from current users time.23

nome.mins()

Return ValuesReturns an integer value of the minutes from current users time.59

nome.secs()

Return ValuesReturns an integer value of the seconds from current users time.01

Weather

nome.getTemperature( unit )

Return ValuesReturns an integer value without mark30°C

Parameters

CCelcius

FFarenheit

Options

nome.weatherFeed( true | true | void )

Return Valueswhen called with no parameters returns true if feed is active false is feed is non active.

Parameters

trueSets weather data to be active and returned on invoking nome

falseWeather data is not retrieved

nome.setLocation( lat , lng )

Return ValuesThis 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()

latLatitude value of you / your business

lngLongitude value of you / your business

nome.ready( function )

Return ValuesThis 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!)

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!)

lat1Latitude

lng1Longitude

lat2Latitude

lng2Longitude

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

Nome? What is it?

Nome (pronounced know me) is a JavaScript library that leverages the power of HTML5 geolocation and location data. This type of data isn't normally exposed within a user session without signing up to
multiple services and installing many large database files locally.

With clever thinking nome has the potential to change the way you deliver content to your audience. A bar could show offers for cool drinks if the temperature rose above 25&degc; A shop could entice with targeted offers to
customers right outside their door.

With nome giving access to more information than is currently offered from a standard browser session, you or your clients could be engaging customers in a new way.

Getting it going

Simple, just put the following code into your document along with the other libraries you use. (usually in the head section)

<script src="nome-[version].js" type="text/javascript"></script>

Example

To implement nome use the .ready() method so you know all the data is loaded and available to JavaScript.

nome.ready(function() {//Get the distance of the user
distance = nome.getDistance();/* Then use another library such as jQuery
* to maniuplate the DOM with the data
*/
$('#somediv').html("<p>" + distance + "</p>");
});

Show me!

You can use this with Google maps API also.

What Next?

Contribute to Nome's development, head on over to the SourceForge project.