Giter Site home page Giter Site logo

metroplanner's People

Contributors

nickcapurso avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

metroplanner's Issues

In-App, Zoomable, Scrollable Metro Map

Previously was not included due to size restrictions on ImageViews. At least one other Metro app has an offline map, so we should be able to include this functionality as well (without resorting to using the Gallery app).

Refactor Longer Methods

Candidate methods for refactoring into multiple, smaller, coupled methods:

  • MainActivity.mHandler.handleMessage(...)
  • MapsActivity.drawPath(...)
  • PlanningModule.parseFetchResults(...)
  • PlanningModule.continueFetches()

Change LinearLayout lists to RecyclerView

Currently, the IncidentsActivity and HistoryActivity both uses a scrollable LinearLayout to display the list of custom view classes. These should be switched over to a RecyclerView (the efficient ListView).

Interfaces instead of Handlers?

The NetworkTimeout, JSONFetcher, and PlanningModule classes all use Handler references to notify clients of finished events. Alternative method would be to use interfaces and callbacks (which, arguably, would be faster) - need to examine whether this is feasible.

Sticking with Handlers would be good if any of these will be done in background threads in the future (and events are needed to be sent to the UI thread).

Fix (and Improve) Routing Algorithm

Previously, the WMATA API returned stations on a given line in a logical order:

  • Example, orange line: {Vienna, Dunn Loring, West Falls Church, East Falls Church, ... , New Carrollton}

Now, the stations are returned in a order relative to their unique station code, which is not necessarily the logical order (for example, the first station for the red line is Metro Center). The line selection and starting/ending stations are still selected properly.

The code assumes the station list will be in logical order, so now will need to be adjusted to accommodate the changes either by:

  1. Sorting the returned list into a logical ordering (from one end of the line to the other)
  2. Using the Station-to-Station API

The algorithm also relies on the fact that, for the D.C. Metro, all lines intersect every other line at at least one point.

Likely when work begins on this issue, it will be split until multiple, smaller issues.

Update JSONFetcher for API 23

In API 23, functionality of Apache HTTP Components were brought into the Android APIs and deprecated the former. JSONFetcher still relies on the external API, so switching it over for API 23 will allow us to have a targetSdk level of 23.

Put All String Constants in Strings.xml

Some string constants (used for Toasts or Dialogs) should be moved from the Activities into the strings.xml file for organization and possible future localization.

New Name, Icon, and Logo

Practice information from the "Blending Brand and Material Design" workshop at Android Summit.

Also, need a nicer package name.

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.