Giter Site home page Giter Site logo

darkars33 / geoquery.in Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chakshugautam/geoquery.in

0.0 0.0 0.0 1.08 GB

Service to get Location from ipv4 and ipv6

Home Page: https://geoquery.in

Shell 5.75% JavaScript 82.28% CSS 4.45% HTML 6.65% Dockerfile 0.87%

geoquery.in's Introduction

GeoQuery.in

Open Mapping Infrastructure

Vision

Our vision.

Example

See code example in the server folder.

Setup Server

Run ./setup.sh. This script will install bun and download required files to setup server

cd server
./setup.sh

Start Server

bun app.js

API

Works with both ipv4 and ipv6.

Get geolocation corresponding to given IP

curl https://geoip.samagra.io/city/128.101.101.101

Get geolocation for given lat & lon

curl https://geoip.samagra.io/georev?lat=28.7041&lon=77.1025

Get polygon centroid for given STATE/DISTRICT/SUBDISTRICT with some query

curl https://geoip.samagra.io/location/DISTRICT/centroid?query=lucknow

Fuzzy search location by name with STATE/DISTRICT/SUBDISTRICT/VILLAGE levels with query & location level filters in request body, filter keys should one of these STATE/DISTRICT/SUBDISTRICT/VILLAGE.

curl --location 'https://geoip.samagra.io/location/VILLAGE/fuzzysearch' \
--header 'Content-Type: application/json' \
--data '{
    "query": "Arong",
    "filter": {
        "STATE": "Andaman & Nicobar Islands",
        "DISTRICT": "Nicobars"
    }
}'
# Response
{
    "matches": [
        {
            "state": "Andaman & Nicobar Islands",
            "district": "Nicobars",
            "subDistrict": "Car Nicobar",
            "village": "Arong"
        }
    ]
}

Notes

DB will remain updated automatically. Please create a ticket if you see some issues.

Contribution Guide

  1. Please consider issues up from grabs.
  2. It will only be assigned with a PR.

geoquery.in's People

Contributors

chakshugautam avatar dhruv-1001 avatar sagarkori143 avatar 35c4n0r avatar kumarguddu609 avatar aryanmishra29 avatar gauravdcap avatar harsh06-afk avatar singhalkarun avatar mayasatishrao avatar ahsanayaz avatar srijan-ss02 avatar sumsum1231 avatar utkarshahuja2003 avatar jainvedant392 avatar zeel991 avatar vilol-04 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.