Git Product home page Git Product logo

kgclimate-django's Introduction

KGclimate-django

A Django app that accepts and returns JSON arrays, mapping latitude and longitude coordinates to a Köppen-Geiger climate classification.

Classification details and data sets can be found here: http://koeppen-geiger.vu-wien.ac.at/

See models.py for database schema. An example data set, with the most recently (1976 - 2000) observed climate class coordinates, is available in ASCII format in the root of this hub.

To request a climate_class, send a JSON array (via GET or POST) with two key-values, 'latitude' and 'longitude'. A JSON array with a single key-value, 'class', will be returned. 'Class' value is null if input is incomplete or improperly formatted.

Once the app is running, JQuery and JQuery-JSON (for example) can be used to interact with it: $.ajax({ url: 'URL/pointing/to/KGclimate/', type: 'POST', contentType: 'application/json; charset=utf-8', data: $.toJSON({ lat: -89.75, lng: -179.75 }), dataType: 'json', success: function(data){ alert(data['class']); } });

kgclimate-django's People

Contributors

paolo-g avatar

Watchers

 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.