Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc