Giter Site home page Giter Site logo

cyclephilly-ios-app's People

Contributors

acricaa avatar cledantec avatar emelleme avatar flibbertigibbet avatar guoanhong avatar kclough avatar mchoimis avatar pschmied avatar themightychris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cyclephilly-ios-app's Issues

Rails code base

Is the rails code base available? I'm having trouble finding the link to it.

I'd like to stand this up in Honolulu if possible.

Failed Uploads Fix

Lloyd and I think we figured out the reason why uploads are failing. In TripManager.m there is a switch statement which runs through a bunch of server responses and if it does not receive any of them defaults to a kServerError message which prints "Upload Failed. Try again later." We just need to rewrite the switch statement to cover all scenarios of server responses because uploads are going through but the server is not passing a message back that the switch statement can interpret so it is defaulting to a failed upload.

\- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
{
    // this method is called when the server has determined that it
    // has enough information to create the NSURLResponse
    NSLog(@"didReceiveResponse: %@", response);

```
NSHTTPURLResponse *httpResponse = nil;
if ( [response isKindOfClass:[NSHTTPURLResponse class]] &&
    ( httpResponse = (NSHTTPURLResponse*)response ) )
{
    BOOL success = NO;
    NSString *title   = nil;
    NSString *message = nil;
    switch ( [httpResponse statusCode] )
    {
        case 200:
        case 201:
            success = YES;
            title   = kSuccessTitle;
            message = kSaveSuccess;
            break;
        case 202:
            success = YES;
            title   = kSuccessTitle;
            message = kSaveAccepted;
            break;
        case 500:
        default:
            title = @"Internal Server Error";
            //message = [NSString stringWithFormat:@"%d", [httpResponse statusCode]];
            message = kServerError;
    }

    NSLog(@"%@: %@", title, message);

    //
    // DEBUG
    NSLog(@"+++++++DEBUG didReceiveResponse %@: %@", [response URL],[(NSHTTPURLResponse*)response allHeaderFields]);

    if ( success )
    {
        [note setUploaded:[NSDate date]];

        NSError *error;
        if (![managedObjectContext save:&error]) {
            // Handle the error.
            NSLog(@"TripManager setUploaded error %@, %@", error, [error localizedDescription]);
        }

        [uploadingView loadingComplete:kSuccessTitle delayInterval:.7];
    } else {

        [uploadingView loadingComplete:kServerError delayInterval:1.5];
    }
}

// it can be called multiple times, for example in the case of a
// redirect, so each time we reset the data.

// receivedData is declared as a method instance elsewhere
[receivedDataNoted setLength:0];
```

}

Upload time

Need to increase trip upload time from 60 seconds to 5 minutes.

add question for whether bike rental used on trip

In the questions asked before trip upload, add a slider for "Did you use an Indego bike rental for this trip"? The space under the slider asking if transit used during the trip would be a good spot for it.

Love the App!

I just used it again to go to work. It would be cool if there was a feature on there that lets people jot down notes on their ride or even rate the quality of their ride. For instance, #hospitalarea bad for bikers.
That type of thing.

When I was used it , I wanted to plug in a start address and an end address and have the app generate a short list of options suggesting the major streets that are most used to accomplish this mission (nothing fancy) but just a general pointer...

You Can Use POD

Hi , i´m reading the code in specific the file SaveRequest.m ,
i think that you can implement a dependency mangar and use AFHTTPRequestOperationManager.

more about POD
https://cocoapods.org/

Settings Multi-select boxes unuseable

I think this is a glitch with iOS 8 but, in the "settings" section of the app, the multi-select boxes (Home income, cycle frequency, rider type, rider history) are un-useable. When you select a category, a blank translucent box on the bottom pops up and you cannot select anything. It also basically renders the entire app un-useable. I've seen this happen in other apps post-iOS 8. Not sure if there is a fix.

img_3474

add Indego station map overlay

  • Add overlay to the map view with the Indego bike rental stations
  • Give the markers popups with information on station name, status (if not active) and bikes/docks available (if active)
  • Allow overlay to be switched on/off
  • Use Indego image resources in markers
  • Color markers by status to match colors used by Indego website station map

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.