Urban Mobility Dataset
Overview
In this guide, you’ll learn how to use the Oxla database with Urban Mobility datasets through various sample queries. These datasets include time-series data from New York City Taxi and For-Hire Vehicle Data. It contains several tables, such as trips, taxi zones, and weather observations.
Data Source: https://github.com/toddwschneider/nyc-taxi-data .
Ensure you’ve created the Data Storage with the appropriate demo dataset, the Cluster is running, and you’re connected to it using the PostgreSQL client. For more details, refer to the Quickstart - Oxla SaaS page.
Datasets Structure
Let’s explore the tables and their structures to better understand and fully utilize the Urban Mobility dataset.
Sample Queries
Sample 1: Number of Trips by Payment Type
This example shows the number of trips for each payment type used in the dataset.
The query displays number of trips grouped by payment type.
Sample 2: Calculate Revenue per Pickup Point
This example calculates the top 10 pickup locations with the highest revenue.
The result displays the top 10 pickup locations, with JFK Airport having the highest revenue.
Sample 3: Manhattan’s Most Popular Cabs
This example provides insights into Manhattan’s most popular cabs by showing key statistics for each cab type.
The result shows the shortest and farthest trip distances, average trip distance, and average fare for each cab type.
Sample 4: How Weather Impacts the Transportation Demand Analysis
Here we analyze the average temperature and wind speed from January to April on the 1st and 2nd of each month.
The output helps us understand how weather conditions from January to April impact the number of trips taken on specific dates. It shows that days with higher temperatures and stronger winds see more trips happening.