Actions
Feature #1175
openNYC Ticket Scraper
Status:
New
Priority:
Normal
Assignee:
-
Start date:
09/24/2025
Due date:
% Done:
0%
Estimated time:
Description
NYC Ticket Scraper¶
Create a feature in the car rental app that automatically checks for outstanding NYC parking or camera tickets using the license plate and state of each rented vehicle.
Functionality:
Ticket Search Integration¶
- Build a background process that checks NYC’s ticket database (e.g. NYC Ticket Payments or NYC Open Data if available).
- https://a836-citypay.nyc.gov/citypay/Parking
- https://nycserv.nyc.gov/NYCServWeb/NYCSERVMain
- Input: Plate number + State for each active car.
- Output: List of any new ticket(s) with:
-
- Plate number
-
- Ticket number
-
- Violation description
-
- Date/time
-
- Amount due
-
- Location
-
- Status (unpaid/paid)
Ticket Assignment Logic¶
- Compare ticket date/time with the car’s rental history.
- Assign the ticket to the customer who had the car during that time (if available).
- Show in-app under a new “Tickets” section per rental or vehicle.
Notifications¶
- Trigger a push notification to the admin app user when any new ticket is found.
- Include plate, ticket amount, violation type, and rental ID (if matched).
Email Report via Cron¶
- Set up a cron job (or Flutter background service with Firebase + Cloud Functions if preferred) to:
- Run the ticket scan twice daily (e.g. 7 AM and 7 PM).
- Email a summary of newly found tickets to admin@example.com (replace with actual email).
- Format the report with car, ticket info, and matched customer if found.
Admin Dashboard View (Optional)¶
- Add a new section to the admin panel for “Tickets” where the manager can:
-
- View all open tickets
-
- Filter by plate/date/customer
-
- Manually mark tickets as resolved
-
- Export CSV or PDF if needed
Testing¶
- Test with sample plate numbers known to have tickets.
- Validate assignment logic by comparing ticket times with rental times.
Estimated Time¶
- API Integration + Parsing: 4–6h
- Matching to Rentals: 3–5h
- Notification Setup: 2–3h
- Cron Job + Email: 2–4h
- Dashboard UI (optional): 4–6h
Files
No data to display
Actions