Code Monkey home page Code Monkey logo

statsd's Introduction

OpenCars

CircleCI Go Report Card

Overview

RESTful API with information about transport just using Ukrainian License Plate.

Server

Download PostgreSQL dump before starting the server. NOTE: This file is pretty big (3.1 GB)

$ gsutil cp gs://opencars/cars.sql cars.sql

Import database to PostgreSQL

$ cat cars.sql | psql -U postgres

Run the server

$ go run cmd/server/main.go

API

$ http localhost:8080/transport?number="АА9359РС"
[
  {
    "address": "8036600000",
    "body": "УНІВЕРСАЛ-B",
    "brand": "TESLA",
    "capacity": 0,
    "color": "ЧОРНИЙ",
    "date": "05.06.2019",
    "description": "ПЕРЕРЕЄСТРАЦIЯ У ЗВ`ЯЗКУ ЗI ЗМIНОЮ АНКЕТНИХ ДАНИХ ВЛАСНИКА",
    "fuel": "ЕЛЕКТРО",
    "kind": "ЛЕГКОВИЙ",
    "model": "MODEL X",
    "number": "АА9359РС",
    "office_id": 12290,
    "office_name": "ТСЦ 8041",
    "operation": 340,
    "person": "P",
    "purpose": "ЗАГАЛЬНИЙ",
    "weight": 2485,
    "year": 2016,
    "vin": "5YJXCCE40GF010543"
  }
]

For more information see documentation.

Parser

Parse CSV files from data.gov.ua into one SQL dump.

$ go run cmd/parser/main.go -path=<PATH> # Path to CSV file

Data

All information was taken from official Ukrainian resource

License

Project released under the terms of the MIT license.

statsd's People

Contributors

shal avatar

Watchers

 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.