New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

zeitraum

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zeitraum

spatio-temporal query library for Couchbase

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

ZeitRaum (Tempus Spatium)

ZeitRaum is a library to retrieve document ids filtered by time and geolocation.

database spatial view

    function (doc) {
      if(doc.loc) {
        var date_time = doc.eventStartDateTime.split(' ');
        var date = date_time[0].split('-');
        var time = date_time[1].split(':');
        emit({type: "Point", coordinates: doc.loc}, date.concat(time));
      }
    }

usage

  var zeitraum = require('./zeitraum'),
    lat = 41.387,
    lon = 2.170054,
    server = '127.0.0.1:8092',
    r = 50,
    startDate = "2013-01-01 00:00:00",
    endDate = "2013-01-31 23:59:59",
    success = function (success) {
      console.log('success', success);
    },
    error = function (error) {
      console.log('error', error);
    };

    zeitraum.query(error, success, server, 'spatiotemporal', 'index', lat, lon, r, startDate, endDate);
  

test

    make test

copyright (c) 2013 patrick heneise

MIT License (MIT)

made with love in barcelona

Keywords

geocouch

FAQs

Package last updated on 17 Aug 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