Git Product home page Git Product logo

oiorest's Introduction

= ActiveOio

ActiveOIO is a Ruby on Rails ActiveOIO extension to Danish public data.

You can read more about it at http://code.google.com/p/oiorest/


= Example

  # Find all
  Kommune.find(:all)

  # Find one
  Postdistrikt.find(8830)

  # Search by name
  Postdistrikt.find_by_name('borg')

# Adresser

# This is a finder with all possible search params.
# returns an Address-light, with a reduced subset of the full Adresse.
Adresse.find(:all, :params => {:vejnavn => "lyongade", :husnr => "19", :postnr => "2300", :vejnr => "4492", :kommunenr => "101", :sognenr => "7084"})

# direct access
 Adresse.find(9718)

# find the first hit -- fully expanded address object
Adresse.find(:first,:params => {:vejnavn => "lyongade", :husnr => "19"})



= TODO

* lokaliteter => make drill down to full-address level
* Unittests against stubbed responses. Should we hack Active Resource to do that?
* Integration tests against oiorest.dk/danmark
* Script to port github commits into subversion on Google Code

oiorest's People

Stargazers

Angus H. avatar Robin Wunderlin avatar Kasper Weibel Nielsen-Refs avatar Thomas Watson avatar Christian Dalager avatar  avatar Daniel Schierbeck avatar Jacob Atzen avatar Olle Jonsson avatar

Watchers

Jacob Atzen avatar James Cloos 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.