To pull information on every vehicle listing while using the least amount of networks requests, I created a greedy algorithm in genLatLong.py that attempts to find the largest covered area while using the least amount of coordinates.
Data Visualization representing the Long/Lat points used to create the Dataset
Note: This dataset contains information on roughly ~40,000 currently listed (As of 07/08/2018) vehicles on Turo. The dataset contains 84 Data Points for each vehicle.
Finding all Tesla vehicles listed on Turo
Move the interactive map to find location-specific listings
I used Flask to create a REST API that would make it easier to interact with the dataset. The API returns specified vehicle information based on the filters and parameters you use in the URL. GET and POST methods are both supported with the following endpoint:
Response:
{
"data": [
{
"rate_daily": 252.0,
"vehicle_model": "Model S"
},
{
"rate_daily": 140.0,
"vehicle_model": "Model 3"
},
{
"rate_daily": 116.0,
"vehicle_model": "Model S"
},
{
"rate_daily": 430.0,
"vehicle_model": "Model X"
},
{
"rate_daily": 574.0,
"vehicle_model": "Model X"
}
],
"success": true
}
/api/?filter=vehicle_model&keyword=karma&values=vehicle_make,vehicle_model,rate_daily,location_city&limit=3
Response:
{
"data": [
{
"location_city": "Stamford",
"rate_daily": 902.0,
"vehicle_make": "Fisker",
"vehicle_model": "Karma"
},
{
"location_city": "Fontana",
"rate_daily": 717.0,
"vehicle_make": "Fisker",
"vehicle_model": "Karma"
},
{
"location_city": "Atlanta",
"rate_daily": 299.0,
"vehicle_make": "Fisker",
"vehicle_model": "Karma"
}
],
"success": true
}
Response:
{
"data": [
{
"vehicle_name": "Jim's Tesla"
},
{
"vehicle_name": "Ken's Tesla Model 3"
},
{
"vehicle_name": "Nathan's Tesla"
},
{
"vehicle_name": "Lei's Tesla"
},
{
"vehicle_name": "Megan's Tesla"
},
{
"vehicle_name": "GSD Rides Maui Tesla Rental Model S P85+"
},
{
"vehicle_name": "Daniel's Tesla Model 3"
},
{
"vehicle_name": "Daniel's Tesla Model S"
},
{
"vehicle_name": "Gavin's Tesla"
},
{
"vehicle_name": "Travis's Tesla"
}
],
"success": true
}
-
Matias's Lamborghini Huracan is the most expensive car on Turo with a daily rate of $1140.00
-
Dinton's Toyota Camry is the least expensive car on Turo with a daily rate of $10.00
-
There are 649 Tesla Vehicles on Turo
-
The most common vehicle model on Turo is a BMW 3 Series (569 Listings)
-
Scott's 2010 Kia Soul is the most reviewed vehicle on Turo with 233 reviews
PS. If Turo is looking for Software Engineering/Data Science Interns for the Spring of 2019, please let me know. I would love to join the team in San Francisco :)
My Email: [email protected]