Skip to content
TarekyDocs
Console

Transit

GET /v1/transit/{lng},{lat}[;{lng},{lat}]?radius=800

One point returns the lines that pass near it; two return the lines that serve both ends. Each line has its name, its fare in IQD, its end stops, and how far each point is from it.

GET /v1/transit/plan/{lng},{lat};{lng},{lat}

Returns walk, ride and walk plans, each leg with its distance, duration and fare. A plan costs 3 units.

On a ride leg:

  • routeNames is the line’s name in ar, en and ckb (ckb is not filled in yet), and routeName stays the Arabic one.
  • towards is the end of the line this ride is heading to, as { ar, en }: «towards Bab Al-Muadham». It comes from where along the line you board and where you get off, so it is right whichever way you ride. It is null when that end of the line has not been confirmed (a few lines still lack one): show no direction rather than a guess.

Every leg’s from and to carry a name ({ ar, en }): the street, square or area to board or get off at, which is what you tell a rider. It is null for your own origin and destination, which you already named. To start walking to the boarding point, ask /v1/directions/walking/… from the origin to the leg’s to.

Baghdad’s kia lines have no timetables and no intermediate stops, so we give no waiting times and no transfers. We give what we know precisely: which line serves your trip, and where to get on and off.