hermish / toronto-data

Using City of Toronto data to do something useful!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DineSafe Toolkit

Introduction

Using City of Toronto data to do something useful! Run the program by navigating to the root directory of this repository in terminal and running the Run script

Requirements

Ensure that you have a stable internet connection and approximately 80 MB of space to allow the data to be download from the city website. In order to transform the data provided, R is used; you can download version 3.4.0 for free here.

Once R is installed, load the R console and run the following command:

install.packages(c("methods", "readr", "XML", "plyr”, “ppls”))

This makes sure the the prerequisite libraries are installed on your system for the tool kit to convert and analyze the data.

Also, ensure the following command line utilities are installed: unzip and MongoDB utilities which can be found here or installed through Homebrew.

Literal Files

The following files must be present in the data folder with the following specifications for the scripts to run.

  1. destination.txt
<mongo_db_server_address>
<database_name>
<collection_name>
<username>
<password>
  1. format.txt
name,class
<field1>,<type1>
<field2>,<type2>
...
  1. source.txt
<url_of_data>

About

Using City of Toronto data to do something useful!


Languages

Language:R 87.5%Language:Shell 12.5%