---
title: HackTheNorth 2017 – University of Waterloo
author: rhnvrm
type: post
date: 2017-09-20T14:25:42+00:00
url: blog/2017/09/20/torogo/
categories:
  - projects
tags:
  - datascience
  - hackathon
  - python

---
[<img class="aligncenter wp-image-260 size-large" src="/wp-content/uploads/2018/02/22550124_1987147797978461_2612175686816255452_o-700x467.jpg" alt="" width="700" height="467" srcset="/wp-content/uploads/2018/02/22550124_1987147797978461_2612175686816255452_o-700x467.jpg 700w, /wp-content/uploads/2018/02/22550124_1987147797978461_2612175686816255452_o-300x200.jpg 300w, /wp-content/uploads/2018/02/22550124_1987147797978461_2612175686816255452_o-768x512.jpg 768w, /wp-content/uploads/2018/02/22550124_1987147797978461_2612175686816255452_o.jpg 1500w" sizes="(max-width: 700px) 100vw, 700px" />][1]

I attended HackTheNorth, which is Canada&#8217;s Biggest Hackathon and takes place at University of Waterloo campus. I was glad to join over 1000 students from around the world at the University of Waterloo to collaborate and create something extraordinary in 36 hours. I didn&#8217;t go in as a team as the visa process was a bit delayed and so none of the participants from India knew if they would be able to go. Well, eventually, we were three people from different universities from New Delhi who formed a team when we met in Canada.

{{< tweet 908767464087015424 >}}

{{< tweet 908833939392839681 >}}

{{< tweet 908856528144359426 >}}

{{< tweet 908876181558177792 >}}

{{< tweet 909405725658685445 >}}

# The Project

We built ToroGo, an app powered by Data Science to help newcomers decide the perfect neighborhood for someone moving to Toronto. I worked on writing the API for the backend and the entire data collection and analysis involved in the project.

<span class="embed-youtube" style="text-align:center; display: block;"></span>

<div>
  <h2>
    Inspiration
  </h2>
  
  <p>
    We traveled all the way from India and while booking our AirBnb we were overwhelmed with the options available to us. Although, websites like tripadvisor help with reviews of an area, it is often not enough. Toronto welcomes over 40 million visitors annually, and is the leading tourism destination in Canada. So we decided to use the power of data science to help travelers like us solve where to stay.
  </p>
  
  <h2>
    What it does
  </h2>
  
  <h3>
    Find a Place
  </h3>
  
  <p>
    In our discussions we came up with three important things that users look at while deciding where to live in a new city:
  </p>
  
  <ul>
    <li>
      Price
    </li>
    <li>
      Safety
    </li>
    <li>
      Reviews
    </li>
  </ul>
  
  <p>
    The app requests the user to enter his priority for the above mentioned features and suggests the top 5 suggested places that would suit the user based on data analysis.
  </p>
  
  <h3>
    Currency Converter
  </h3>
  
  <p>
    Along with that we provide the user easy access to check the live currency exchange rates using <strong>XE.com</strong> powerful api instantly from the app. It supports searching from 100s of currencies and can instantly give the live exchange rate.
  </p>
  
  <h2>
    How we built it
  </h2>
  
  <p>
    We used open datasets available from the Canadian Open Dataset website and Airbnb to build an aggregate score of around 130 sub-areas of Toronto City. We chose three parameters,
  </p>
  
  <ul>
    <li>
      <strong>Locality Ratings</strong> based on Sentiment Analysis of Reviews
    </li>
    <li>
      <strong>Safety Ratings</strong> based on Crime Data such as Assaults
    </li>
    <li>
      <strong>Priceyness Ratings</strong> based on the cost of listings of Airbnbs in a Neighborhood.
    </li>
  </ul>
  
  <p>
    The data analysis can be viewed in our <a href="https://github.com/rhnvrm/htn/tree/master/dataset" rel="nofollow">iPython Notebooks</a>
  </p>
  
  <p>
    <a href="https://github.com/rhnvrm/htn/tree/master/dataset" rel="nofollow"><img src="https://res.cloudinary.com/devpost/image/fetch/s--BNTnZqxs--/c_limit,f_auto,fl_lossy,q_auto,w_900/https://i.imgur.com/gzjo6f2.png" alt="Imgur" data-canonical-url="https://i.imgur.com/gzjo6f2.png" /></a>
  </p>
  
  <p>
    After this, we wrote an algorithm based on Euclidean Distance between these ratings and the user&#8217;s preferences to suggest the most suitable locations for the user.
  </p>
  
  <p>
    The currency converter is powered by <strong>XE.com</strong>&#8216;s API and we were able to make an intuitive UX for searching through the currencies.
  </p>
  
  <h2>
    Challenges we ran into
  </h2>
  
  <ul>
    <li>
      Data was easy to find but aggregation was tough to do based on the neighborhood level.
    </li>
    <li>
      Getting the heatmap to work based on neighborhood on Android
    </li>
    <li>
      We tried to integrate the Microsoft Azure Chatbot API but were unable to integrate it with the app.
    </li>
  </ul>
  
  <h2>
    Accomplishments that we&#8217;re proud of
  </h2>
  
  <ul>
    <li>
      A full ranking of the neighborhoods based on reviews, safety and priceyness of Toronto
    </li>
    <li>
      A fully functional App and API.
    </li>
    <li>
      Firebase Authentication
    </li>
  </ul>
</div>

<div id="built-with" class="">
  <h2>
    Built With
  </h2>
  
  <ul class="no-bullet inline-list">
    <li>
      <span class="cp-tag recognized-tag"><a href="https://devpost.com/software/built-with/python">python</a></span>
    </li>
    <li>
      <span class="cp-tag">sentiment-analysis</span>
    </li>
    <li>
      <span class="cp-tag recognized-tag"><a href="https://devpost.com/software/built-with/pandas">pandas</a></span>
    </li>
    <li>
      <span class="cp-tag recognized-tag"><a href="https://devpost.com/software/built-with/flask">flask</a></span>
    </li>
    <li>
      <span class="cp-tag recognized-tag"><a href="https://devpost.com/software/built-with/android">android</a></span>
    </li>
    <li>
      <span class="cp-tag recognized-tag"><a href="https://devpost.com/software/built-with/firebase">firebase</a></span>
    </li>
    <li>
      <span class="cp-tag">open-data</span>
    </li>
    <li>
      <span class="cp-tag recognized-tag"><a href="https://devpost.com/software/built-with/airbnb">airbnb</a></span>
    </li>
  </ul>
</div>

 [1]: https://www.facebook.com/hackthenorth/photos/rpd.100005363469781/1987147797978461/?type=3&theater