Fork me on GitHub
Show:

FreeGeoIPGeolocateService

Summary

Constructor

aeris.geolocate.FreeGeoIPGeolocateService

Syntax

aeris.geolocate.FreeGeoIPGeolocateService

(
  • opt_options
)

Summary

Parameters:

Methods

clearWatch

Syntax

clearWatch

()

Summary

getCurrentPosition

Syntax

getCurrentPosition

()

Summary

isSupported

Syntax

isSupported

()

Summary

resolve_

Syntax

resolve_

(
  • promise
  • data
)
private

Summary

Resolve a geolocation service promise with data returned from FreeGeoIP.

Parameters:

watchPosition

Syntax

watchPosition

()

Summary

Properties

jsonp_

Syntax

jsonp_

aeris.JSONP private

Summary

lastPosition_

Syntax

Summary

The most recent results returned from the API.

url_

Syntax

url_

String private

Summary

The url of the FreeGeoIP API.

watchId_

Syntax

watchId_

Number private

Summary

The interval timer id returned by window.setInterval.

Saved, so we can clear it later.