How We Use Flight Data APIs to Track Every Airport Pickup
The Airport Pickup Problem When a guest books an airport transfer, they give us a flight number and scheduled arrival time. But flights are late, early, or diverted daily. A driver waiting at arrivals for a 14:00 landi
The Airport Pickup Problem
When a guest books an airport transfer, they give us a flight number and scheduled arrival time. But flights are late, early, or diverted daily. A driver waiting at arrivals for a 14:00 landing that actually touches down at 15:40 wastes fuel and patience.
Flight-Aware Pricing
Our system incorporates flight awareness at two levels. First, the pricing engine knows that Marrakech Menara (RAK) is the anchor. Airport pickups get a 60-minute free wait window:
export const FREE_WAIT_MIN = 60;
After that window, the driver calls the guest and the office. Extended waits are agreed by phone, never auto-charged.
Night Supplement Logic
Flights landing between 23:00 and 05:59 trigger a night supplement:
export const NIGHT_FROM = 23;
export const NIGHT_TO = 6;
export const NIGHT_PCT = 10;
A 22:50 landing pays daytime rates. A 23:05 landing pays 10% more.
Schema.org Integration
Each airport transfer page emits a TaxiService JSON-LD node with structured Offer objects:
{
"@type": "Offer",
"priceCurrency": "MAD",
"price": "300",
"itemOffered": {
"@type": "TaxiService",
"provider": { "@id": "https://www.serenitymoroccotours.com/#organization" }
}
}
What This Means for the Guest
The guest books with a flight number. Our office tracks the actual landing. The driver arrives when the plane lands. The 60-minute free wait means nobody is rushed through passport control. All via WhatsApp, no app required.
Operated by Serenity Morocco Tours. Visit navetteforyou.com or WhatsApp +212 701 664 704.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.