GithubHelp home page GithubHelp logo

park-it's Introduction

Park-it

Driving in the heart of Toronto is a great experience. Food is great and the attractions are great! What's not great is when you need to find parking. What if you could just have a list of the closest parking lots with the price rate, the size of the lot and the address? Park-it does it all for you, all on the go. Park-it is an Android application that uses Toronto Open Data and Google Maps to point you to the closest parking lot wherever you are (preferably in Toronto).

Parking List Parking Activity

About

This application was my way of teaching myself various aspects of Android in a fun way. I went to a Startup Hackathon a few months ago, and the focus of it was to use Open Data. I didn't win, but it was a great experience and I took a lot away from it. Since then, I really wanted to make something that could make my life slightly easier while utilizing the power of Open Data and the popularity of the Android Framework.

How does it work?

Park-it uses "Green P Parking" taken from the Toronto Open Data resources online. It takes your current location and calculates the distance between you and the closest parking lots around. Because it is Toronto Open Data, this app really only works in Toronto.

#Lets get into more detail Here's a breakdown on how everything works

ParkingListActivity.java

Here is the first place where the user goes in Park-it. This activity contains a subclass implementing an AsyncTask that will send an HTTP GET request. Once the results come back, it will be placed into a JSONObject object.

The JSON Object

The JSONObject returned contains the Latitude and Longitude coordinates, which make it easy to calculate the distance from your current location to the Parking lot itself. The distance is calculated using the Location.distanceTo function provided by Google.

The Array Adapter

Next, the parsed JSON is added to ParkingListArrayAdapter (which implements an ArrayAdapter class) where it takes the desired values and displays each TextView in the ListView.

park-it's People

Watchers

James Cloos avatar Anthony Luu avatar

Forkers

monyancha

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.