Giter Site home page Giter Site logo

otp-buddy's Introduction

otp-buddy's People

Contributors

derekedwards avatar mmaranda-cs avatar tmahtab avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jwang-rtd

otp-buddy's Issues

Refactor Feed ID Call

Right now we call OTP to get the feed ID every time a trip is planned.

Move this to a DB setting and only updated this when OTP is updated.

Create Config Page for Settings

Start with

  1. open trip planner address (Done)
  2. Location of Landmark File (Done)
  3. Location of synonym file (Done)
  4. Location of blacklist file (Done)
  5. Gobal Boundary Text String (Done)

Setup Emails

Once that is done, enable emailing in the landmarks and stops rake tasks.

Cut Round-Trip Time by 50%

The plan call for a transit trip. Specifically, the one below, takes 3.83 seconds on average. Cut that by 50%.

For reference the 'blacklist' call takes <100ms and the plan call to OTP also takes <100ms. What calculation is taking all this time?

{"source_tag":"internal","trip_purpose":"general_purpose","optimize":"TIME","itinerary_request":[{"segment_index":0,"start_location":{"formatted_address":"3401 E Colfax Ave, Denver, CO 80206, USA","geometry":{"location":{"lat":39.74032700000001,"lng":-104.94736699999999}}},"end_location":{"formatted_address":"1231 S Parker Rd, Denver, CO 80231, USA","geometry":{"location":{"lat":39.69393549999999,"lng":-104.89589339999998}}},"trip_time":"2016-10-18T21:03:00+00:00","departure_type":"depart"}],"modes":["mode_transit"],"max_walk_miles":0.5,"max_bicycle_miles":3,"min_transfer_time":5,"max_transfer_time":3600}

Clean Up API Calls

Create a V2 of the API that is a bit cleaner.

  1. Only use Camel Case (in v1 there is a mix of camel case and underscores)
  2. Don't refer to requested trip types as mode_trip_name etc.
  3. Rename Itineraries Controller to Trips Controller
  4. min_transfer_time & max_transfer_time should be min_transfer_seconds & max_transfer_seconds #
  5. We only should support 1 way trips. Make that assumption in the controller. No more trip_part = trips_parts.first
  6. json_legs should just be legs
  7. All Times/Distances columns should be listed with unit e.g., walk_seconds walk_distnance_meters .etc
  8. Move Global Boundary Call to settings_controller

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.