🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

askgeo

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

askgeo

Simple wrapper for the AskGeo web API

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

askgeo

Simple AskGeo API wrapper. See AskGeo to obtain an API Key.

Installation via npm

$ npm install askgeo

TimeZone Object

timezone returns a TimeZone object. An example:

{
  IsInside: 'true',
  AskGeoId: 12580,
  MinDistanceKm: 0,
  TimeZoneId: 'America/New_York',
  ShortName: 'EDT',
  CurrentOffsetMs: -14400000,
  WindowsStandardName: 'Eastern Standard Time',
  InDstNow: 'true'
}

API

Account id and api keys can be set as environment variables and will be attempted to retrieve at process.env.ASK_GEO_ACCOUNT_ID and process.env.ASK_GEO_API_KEY. If they are set then the callback in each function can be moved up two arguments.

.timezone(lat, lon, id, key, callback)

Given a lat, lon point, return a TimeZone object.

askgeo.timezone(38.9001028, -76.9997817, console.log);

Keywords

askgeo

FAQs

Package last updated on 03 Sep 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts