Last active
March 31, 2016 13:10
-
-
Save tapanpandita/e283c7ba9780622ea45113902f6706c4 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
HTDriver driver = new HTDriver() | |
.setName("Tapan Pandita") | |
.setPhone("+15555555555") | |
.setVehicleType(HTDriverVehicleType.CAR); | |
HTDestination destination = new HTPlace() | |
.setAddress("Union Square, San Francisco"); | |
HTLiteParamsBuilder htLiteParamsBuilder = new HTLiteParamsBuilder(); | |
HTLiteParams htLiteParams = htLiteParamsBuilder.setDriver(driver) | |
.setDestination(destination) | |
.createHTLiteParams(); | |
transmitterService = HTTransmitterService.getInstance(this); | |
transmitterService.startLiteTrip(htLiteParams, new HTLiteStatusCallback() { | |
@Override | |
public void onError(Exception error) { | |
// Handle Error here | |
} | |
@Override | |
public void onSuccess(HTLite htLite) { | |
// Success! You get access to the tracking URL and ETA here. | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment