Created
May 18, 2016 03:34
-
-
Save iamlordvodemort/0499e48a3af41810d988a905ffb59e31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString *uberPath = [NSString stringWithFormat:@"uber://?client_id=%@&action=setPickup&pickup[latitude]=%@&pickup[longitude]=%@&pickup[nickname]=Current Location&dropoff[latitude]=%@&dropoff[longitude]=%@&dropoff[nickname]=%@&dropoff[formatted_address]=%@&partner_deeplink=%@", | |
kUberClientId, | |
[NSString stringWithFormat:@"%f", currentLocation.coordinate.latitude], | |
[NSString stringWithFormat:@"%f", currentLocation.coordinate.longitude], | |
[NSString stringWithFormat:@"%f", [destination.coordinate.latitude doubleValue]], | |
[NSString stringWithFormat:@"%f", [destination.coordinate.longitude doubleValue]], | |
destination.name, | |
destination.address, | |
partner_deeplink_url]; | |
uberPath = [uberPath stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment