Coder Social home page Coder Social logo

openfreecab-storage's Introduction

Openfreecabs.org storage

A thread-safe in-memory Geo storage for https://openfreecabs.org project based on R-tree index. With simple http api

Prerequisites

  1. Go
  2. Make

Installation

mkdir -p $GOPATH/src/github.com/maddevsio/
cd $GOPATH/src/github.com/maddevsio
git clone https://github.com/maddevsio/openfreecab-storage
cd openfreecab-storage
make depends
make

Or golang way

mkdir -p $GOPATH/src/github.com/maddevsio/
cd $GOPATH/src/github.com/maddevsio
git clone https://github.com/maddevsio/openfreecab-storage
cd openfreecab-storage
go get -v
go build -v
go install

Configure

GLOBAL OPTIONS:
   --http_bind_addr value  Define custom http port to bind to (default: ":8090") [$HTTP_BIND_ADDR]
   --base_url value        Define custom base url for project (default: "http://localhost:8090") [$BASE_URL]
   --loglevel value        set log level (default: "debug") [$LOG_LEVEL]
   --test_mode             set test mode [$TEST_MODE]
   --help, -h              show help
   --version, -v           print the version

Run

./openfreecab-storage

HTTP API

There are few= http api methods for storage

  1. /nearest/:lat/:lon - return k nearest drivers for your location
  2. /add/ - Add data from crawler
  3. /clean/:companyName/ - purge items for key from storage

Contributing

Feel free to create issues, sending pull requests.

  1. Fork repo
  2. Make a changes
  3. Commit
  4. Create pull request

openfreecab-storage's People

Contributors

gen1us2k avatar m1rotvorez avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.