Gett
Gett is a ride-hailing app. Protocol Launcher allows you to generate Gett's official deeplinks for opening the app and starting ride requests.
Usage
There are two ways to use this library:
- On-Demand import from subpaths enables tree-shaking and keeps bundles small.
- Full Import from the root package is convenient but includes all app modules.
Pick On-Demand for production builds; Full Import is fine for quick scripts or demos.
Select Installation Method
Notes
Gett documents the gett:// scheme for checking whether the app can be opened, and gett://order? for ride requests. Gett says deeplinks are supported on Android and iOS clients.
clientId and productId map to client_id and product_id. Pickup fields map to pickup, pickup_latitude, pickup_longitude, and pickup_poi_name; dropoff fields map to dropoff, dropoff_latitude, and dropoff_longitude. POI names and notes are URL-encoded by the helper.
Only pickupPoiName is exposed for POI names because Gett's examples explicitly show pickup_poi_name. The dropoff POI row in Gett's table is not published as a copyable exact query parameter, so this module does not guess one.
Use rideRequestWithCurrentPickup() or rideRequestWithCurrentDropoff() when you want the official my_location value for one side of the ride.
Open Gett
import { open } from 'protocol-launcher/gett'
const url = open()Ride Request
import { rideRequest } from 'protocol-launcher/gett'
const url = rideRequest({
pickupLatitude: 10.123456,
pickupLongitude: 20.123456,
dropoffLatitude: 10.654321,
dropoffLongitude: 20.654321,
productId: '00000000-0000-4000-8000-000000000000',
})Current Pickup
import { rideRequestWithCurrentPickup } from 'protocol-launcher/gett'
const url = rideRequestWithCurrentPickup({
dropoffLatitude: 10.654321,
dropoffLongitude: 20.654321,
productId: '00000000-0000-4000-8000-000000000000',
})Current Dropoff
import { rideRequestWithCurrentDropoff } from 'protocol-launcher/gett'
const url = rideRequestWithCurrentDropoff({
pickupLatitude: 10.123456,
pickupLongitude: 20.123456,
})Pickup POI and Note
import { rideRequest } from 'protocol-launcher/gett'
const url = rideRequest({
pickupLatitude: 10.123456,
pickupLongitude: 20.123456,
pickupPoiName: 'Example Pickup',
note: 'Meet by entrance B',
})