Giter VIP home page Giter VIP logo

geo-tools-docker-rest's Introduction

Author: @mrummuka

Description: Docker image for minimal remote execution of geo-* Linux geocaching tools (tools by Rick Rickhardson).

Usage:

Prepare image

Downloads and installs necessary dependencies, builds geo-* tools and installs them into Docker container

Clone repo

$ git clone [email protected]:mrummuka/geo-tools-docker-rest.git

Set config

  • Create/edit .georc config file (geo-* tools require credentials to enable logging in) before building image and place it to same directory

Build image

$ docker build -t mrummuka/geo-tools-docker-rest .

Running

Start container

$ docker run --rm --restart=always mrummuka/geo-tools-docker-rest

Run scripts through rest apis (atm, only geo-gid supported)

  • With Web browser / your code / curl call
  • http://<docker_ip>:9900/geo/gid/?format=, where ..* gccode = gid e.g. GC40 (obs! only CAPITALS allowed ) ..* outputformat = one of the formats supported by geo-gid -o

For example, to get geocache data for "Shortcut to Subway (GC4N37J)" in csv format, presuming that container is started and running at 172.17.0.2 and username/password was correctly configured in .georc then browsing to http://172.17.0.2:9900/geo/gid/GC4N37J?format=unicsv should produce

{ "message" : "OK",
  "result" : {
    "format" : "text",
    "message" : "OK",
    "result" : "No,Latitude,Longitude,Name,Description,Symbol,URL,Container,Terrain\r\n1,60.156450,24.721667,\"GC4N37J\",\"Shortcut to subway by sm07\",\"Geocache\",\"24.721667http://www.geocaching.com/seek/cache_details.aspx?log=y\u0026wp=GC4N37J\",\"Unknown\",5.0"
    },
  "status" : 200
}

See also

geo-tools-docker-rest's People

Contributors

mrummuka avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

christiangk-gc

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.