I found that the Uber component won’t work without proper product ids.
for me finding them wasn’t so easy. they are specific for each location.
enter your info in the right places in the lines below ( and gps coordinates) run it in a terminal window and it will spit out the data you need.
curl -H 'Authorization: Token <your server token>' \
'https://api.uber.com/v1/products?latitude=00.00000&longitude=-00.00000'
the output should be something like this:
{
"products": [{
"capacity": 4,
"product_id": "b8e5c464-5de2-4539-a35a-986d6e58f186",
"price_details": {
"service_fees": [],
"cost_per_minute": 0.35,
"distance_unit": "mile",
"minimum": 7.0,
"cost_per_distance": 1.75,
"base": 2.55,
"cancellation_fee": 10.0,
"currency_code": "USD"
},
"image": "http:\/\/d1a3f4spazzrp4.cloudfront.net\/car-types\/mono\/mono-uberx.png",
"short_description": "uberX",
"display_name": "uberX",
"description": "The low cost Uber"
}, {
"capacity": 6,
"product_id": "1e0ce2df-4a1e-4333-86dd-dc0c67aaabe1",
"price_details": {
"service_fees": [],
"cost_per_minute": 0.5,
"distance_unit": "mile",
"minimum": 10.5,
"cost_per_distance": 2.85,
"base": 3.85,
"cancellation_fee": 10.0,
"currency_code": "USD"
},
"image": "http:\/\/d1a3f4spazzrp4.cloudfront.net\/car-types\/mono\/mono-uberxl2.png",
"short_description": "uberXL",
"display_name": "uberXL",
"description": "Low-cost rides for large groups"
}, {
"capacity": 4,
"product_id": "d6d6d7ad-67f9-43ef-a8de-86bd6224613a",
"price_details": {
"service_fees": [],
"cost_per_minute": 0.35,
"distance_unit": "mile",
"minimum": 7.0,
"cost_per_distance": 1.75,
"base": 2.55,
"cancellation_fee": 10.0,
"currency_code": "USD"
},
"image": "http:\/\/d1a3f4spazzrp4.cloudfront.net\/car-types\/mono\/mono-family.png",
"short_description": "CAR SEAT",
"display_name": "uberFAMILY",
"description": "uberFAMILY"
}, {
"capacity": 4,
"product_id": "0e9d8dd3-ffec-4c2b-9714-537e6174bb88",
"price_details": {
"service_fees": [],
"cost_per_minute": 0.65,
"distance_unit": "mile",
"minimum": 15.0,
"cost_per_distance": 3.75,
"base": 7.0,
"cancellation_fee": 10.0,
"currency_code": "USD"
},
"image": "http:\/\/d1a3f4spazzrp4.cloudfront.net\/car-types\/mono\/mono-black.png",
"short_description": "BLACK CAR",
"display_name": "UberBLACK",
"description": "The original Uber"
}, {
"capacity": 6,
"product_id": "56487469-0d3d-4f19-b662-234b7576a562",
"price_details": {
"service_fees": [],
"cost_per_minute": 0.8,
"distance_unit": "mile",
"minimum": 25.0,
"cost_per_distance": 4.5,
"base": 14.0,
"cancellation_fee": 10.0,
"currency_code": "USD"
},
"image": "http:\/\/d1a3f4spazzrp4.cloudfront.net\/car-types\/mono\/mono-suv.png",
"short_description": "SUV",
"display_name": "UberSUV",
"description": "Room for everyone"
}, {
"capacity": 1,
"product_id": "c2c603af-3120-47f1-a5be-70e73e6e35d4",
"price_details": null,
"image": "http:\/\/d1a3f4spazzrp4.cloudfront.net\/car-types\/mono\/mono-nytaxi4.png",
"short_description": "WAV",
"display_name": "WAV",
"description": "WAV"
}, {
"capacity": 1,
"product_id": "ebe413ab-cf49-465f-8564-a71119bfa449",
"price_details": null,
"image": "http:\/\/d1a3f4spazzrp4.cloudfront.net\/car-types\/mono\/mono-nytaxi4.png",
"short_description": "uberT",
"display_name": "uberT",
"description": "Taxi and Boro Taxi without the hassle"
}]
}