unicef/magicbox-aggregate-mobility

Name: magicbox-aggregate-mobility

Owner: unicef

Description: Aggregates Amadeus airport to airport mobility by municipality/state in CSV format

Created: 2017-05-30 18:29:18.0

Updated: 2018-05-14 13:38:05.0

Pushed: 2018-05-16 15:37:51.0

Homepage:

Size: 235

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

MagicBox Aggregate Mobility

License Chat on Gitter Build Status

Aggregate Amadeus mobility data by administrative boundary to produce CSV output

What is this?

This repository aggregates Amadeus mobility data by administrative boundaries to output a CSV file where each line is orig,dest,count.

Administrative boundaries (ABs) are concepts to describe different geospatial concepts, like countries, states, provinces, and more. Read more about ABs on the MagicBox wiki.

Why we use it

Amadeus provides a lot of raw data. Not all of it is useful for MagicBox. This tool reduces the amount of data into three fields:

This data helps us understand travel patterns for MagicBox. For example, we may be able to predict a risk of a virus (e.g. Zika) to spread to a new location.

Getting started

These instructions get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Make sure JAVA_HOME environment variable is set on your system. If you install Hadoop and Spark from the source, make sure they are on your system PATH (e.g. hadoop-3.0.0/bin and spark-2.2.1-bin-hadoop2.7/bin).

Installing

Run these commands at a command prompt.

clone https://github.com/unicef/magicbox-aggregate-mobility.git
agicbox-aggregate-mobility
onfig_sample.js config.js
install
Usage
Configuration

There are a few different options to set in the config.js file:

To get the compressed data?

More info coming soon.

Running with Docker

In this repository you can find a Dockerfile to build an image of this project.

Build the image:

er build -t unicef/magicbox_aggregate_mobility .

You can then run this project within docker using:

er run --rm -v $(pwd):/app unicef/magicbox_aggregate_mobility node main.js
Running tests
run test
Contributing

Check out the following:

  1. MagicBox contributing guidelines
  2. magicbox-aggregate-mobility checklist
Legal

License

This project is licensed under the BSD 3-Clause License.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.