Skip to content

Instantly share code, notes, and snippets.

@tapanpandita
Last active March 31, 2016 13:10
Show Gist options
  • Save tapanpandita/e283c7ba9780622ea45113902f6706c4 to your computer and use it in GitHub Desktop.
Save tapanpandita/e283c7ba9780622ea45113902f6706c4 to your computer and use it in GitHub Desktop.
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