skedgo / tripkit-ios Goto Github PK
View Code? Open in Web Editor NEWSkedGo's TripKit for iOS (and macOS)
Home Page: https://ios.developer.tripgo.com/
License: Apache License 2.0
SkedGo's TripKit for iOS (and macOS)
Home Page: https://ios.developer.tripgo.com/
License: Apache License 2.0
I'm getting a lot of Timeouts when trying to make a quick booking:
Request:
POST /satapp-beta/auth/signin/53e5744a-a815-417a-958c-6c7e9c44e13f HTTP/1.1
Complete request/response
https://gist.github.com/danitinez/d2e3e6c0af3db0808472c5fe8cba9f64
Hi guys, @nighthawk, @MarianoTucat I noticed that I can't get segment.realTimeAlternativeVehicles, trip-kit is not parsing the Locations of those vehicles and we need them to show on the map.
I made a quick fix on the sdk but I'm not sure if it's the right solution. The issue I think is that the sdk is only parsing this information for Public Service buses and no for lyft vehicles.
Do you plan to push an update for this? Should I do a PR for my quick fix?
Thanks
Hi guys, how are you?
I noticed that some segments with "booking" information are not filled with a "ModeInfo", with the proper "identifier" string, making difficult for us to show some data depending the transport mode. This is for segments of type "Collect", found in "Car2Go" or "Denver B-Cycle" for example.
As we need the mode identifier, is it ok to expect that the next segment of a "collect" segment, will hold the correct mode identifier?
Thanks
Hi @nighthawk
After doing a trip update
router.downloadTrip(url, intoTripKitContext: context) { updatedTrip in ....
TKBookingConfirmation object don't have the cancel action on "actions" array. Is this expected?
Thanks
Either by default or as an option. This would let apps allow calling this often, e.g., while paging through trips, but only having the last one reported.
@MarianoTucat
I'm getting:
{
"usererror": true,
"errorCode": 470,
"title": "booking not successful",
"subtitle": "Unauthorized, invalid token.",
"error": "Unauthorized"
}
just after login to lyft. Is not this already solved?
Thanks
https://gist.github.com/danitinez/5414e2ca21536c585330ab43d749faae
Here is the request/response with the Trip:
https://gist.github.com/danitinez/22d0260a900c375990b0483e7b36b7e5
The cancel action is missing on actions array. So we can't cancel the trip from our app.
First call:
https://gist.github.com/danitinez/23c1851f7dd492d79821e210dcb11705
Second call to Sign In:
https://gist.github.com/danitinez/984d30440fea8c2146e17d21b540845a
This last one is giving a Bad Request error.
Is there a property or method to get the trip total distance?
Described here: https://www.waze.com/about/dev
Cartfile
TripKit
, TripKitUI
, TripKitBookings
and TripKitInterApp
as separate frameworksThese classes could do with a clean-up and consolidation:
@MarianoTucat after a quick booking is done, realtimeVehicle is missing the bearing angle.
"realtimeVehicle": {
"id": "Lyft",
"lastUpdate": 1466717072,
"location": {
"lat": 34.14779,
"lng": -118.14452
}
},
Fine to omit the wp
query parameter. It's better than sending all-zeroes.
Especially for public transport (e.g., pt_pub_bus) and TNCs (e.g., ps_tnc_lyft)
@MarianoTucat , modeIdentifier is set to transport modes (like "ps_tnc_LYFT") for "waiting" and parking segments. This breaks the icon representation of each segment on our app.
Will this mode identifier change for stationary segments?
I think this goes to @MarianoTucat
The issue is that after cancelling a quick booking, and when the status of the booking is "pending", realTimeAlternativeVehicles is empty for the trip, and I can't refresh the map with the near lyft vehicles.
Is this expected behaviour? Is this the only way to get the near vehicles?
Thanks.
@MarianoTucat Server is returning "Too many request", and it's not on json format. This is breaking the parsing on our end.
https://gist.github.com/danitinez/cf18a999e8299f6c4830cb8a0a10f480
For some reason, ETA variable on TKQuickBooking is not exported on generated-Swift.h
SWIFT_CLASS("_TtC5la_go14TKQuickBooking")
@interface TKQuickBooking : NSObject
/// Localised identifying this booking option
@property (nonatomic, readonly, copy) NSString * _Nonnull title;
/// Localised description
@property (nonatomic, readonly, copy) NSString * _Nullable subtitle;
/// URL to book this option. If possible, this will book it without further confirmation. These URLs are meant to be used with an instance of BPKBookingViewController.
@property (nonatomic, readonly, strong) NSURL * _Nonnull bookingURL;
@property (nonatomic, readonly, copy) NSString * _Nonnull bookingTitle;
/// URL to fetch updated trip that's using this booking options. Only present if there would be a change to the trip.
@property (nonatomic, readonly, strong) NSURL * _Nullable tripUpdateURL;
/// Optional URL for image identifying this booking option
@property (nonatomic, readonly, strong) NSURL * _Nullable imageURL;
/// Optional price for this option
@property (nonatomic, readonly, strong) TKQuickBookingPrice * _Nullable price;
/// Localised human-friendly string, e.g., "$10"
@property (nonatomic, readonly, copy) NSString * _Nullable priceString;
@end
I can't access TKQuickBookingHelper from ObjC code. It seems TKQuickBookingHelper is not exporting to generated-Swift.h. TKQuickBooking & TKQuickBookingPrice structs have to be changed to classes to can be exported as well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.