Skip to content

opentransportro/geojs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

A highly available backendless geo-location lookup API

Coverage Status

Introduction

GeoJS is a geo-location lookup API supporting plain text, JSON and JSONP endpoints. It also has ChatOps integration and a PTR endpoint. With full CORS support GeoJS can be integrated into any frontend or backend app easily.

Repos

The GeoJS website is available over at jloh/geojs-io and webapp at jloh/geojs-app.

Installation / Getting started

Want your IP? Easy.

$ curl -s https://get.geojs.io/v1/ip
8.8.8.8

Need a PTR? Surething!

$ curl -s https://get.geojs.io/v1/dns/ptr
google-public-dns-a.google.com

I want to know what country a specific IP belongs to! I gotchu.

$ curl -s https://get.geojs.io/v1/ip/country/8.8.4.4
US

Checkout the GeoJS web app for a real world example.

GeoJS has a free unlimited production instance running at get.geojs.io however if you need to host an instance yourself follow on below.

ToDo!

Contributing

We use Waffle to track our work, feel free to tackle anything in the To Do column.

Pull requests are warmly welcome!

Sponsors

GeoJS runs on Digital Ocean's cloud computing platform. Use the link below to get $10 on signup and support GeoJS going forward.

Digital Ocean

Licence

MIT License

Copyright (c) 2017-2018 James Loh

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Packages

No packages published

Languages

  • Perl 70.6%
  • Lua 28.5%
  • Dockerfile 0.9%