Skip to content

straup/js-geolocation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is a very simple wrapper library to test for and use a variety of
third-party APIs to try and geolocate a client.

# EXAMPLE

 args = {
	'enable_logging' : true,
 };

 doThisOnSuccess = function(lat, lon){ ... };
 doThisIfNot = function(error_msg){ ... };

 var loc = new info.aaronland.geo.Location(args);
 loc.findMyLocation(doThisOnSuccess, doThisIfNot);

# PRECEDENCE

The order of precedence for positioning is:

    * Loki/Skyhook API

      Loki is first on the assumption that if you've passed a Loki API key then
      it's probably what you want to use; this may not hold true if you're using
      a browser/device with a built-in GPS unit but one step at a time.

    * Geode API (Firefox, only)

    * Google Gears Geolocation API

    * Google ClientLocation API (IP lookups)

About

A very simple wrapper library to test for and use a variety of third-party APIs to try and geolocate a client.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published