Giter Club home page Giter Club logo

geo-indexer's Introduction

SLIC

SLIC is a simple location indexing service built with golang and persisted with redis. It's ingests lng/lats and returns a geoIndex. The geospatial indexing library being used here was built by uber h3 Feel free to use it.

What it does

It takes several coordinates and places them under an index, such that 1 index can point to numerous user ids.

What can you do with this (build upon this)

  • You can build a realtime supply service for your ride sharing application
  • You can build a realtime demand service for your ride sharing application
  • Build a price surging system based on the number of id's in a particular geographical area (geo-index)

How to run

First Way

  • go run server.go

Second Way

  • go build server.go and then you run ./server

Usage

To index location data,

POST /index-location

{
    "id": "1",
    "lat": "5.68662590662494",
    "lng": "-0.24954311060899848"
}

should return When the user hasn't changed their zone.

{
    "message": "Success"
}

When the driver has entered a new zone

{
    "data": {
        "id": "1",
        "last_index": "614792924527329279",
        "latest_index": 614792923793326079
    },
    "message": "Success"
}

When there's an error

{
    "message": "Error"
}

geo-indexer's People

Contributors

gwuah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ayouboss

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.