Hospitals that are hard to reach by bus

Hospitals that are hard to reach by public transport.

MediumMonthlyAI

Public transport & transitTransportHealthPublic sector

Use this template

What it does

Every year: hospitals in your city with the fewest bus stops within 500 m, the hardest to reach first, written up by xMap AI as an accessibility note for the transport authority.

In one sentence: Monthly on the 1st at 08:00, in Mexico City, find hospitals in the area, count the bus stops and subway stations within 500 m of each, sort them by nearby_count and keep the top 15, write a report with xMap AI, then email the list to you.

Why it is useful

Patients and staff need to reach hospitals by bus. This shows where that is hardest.

Who it is for

Public transport & transit. Transit agencies, bus and rail operators and mobility planners placing stops, running services around disruptions and reaching riders. Every use case for public transport

Best use cases

  • A transport authority
  • A hospital group
  • A health equity researcher

What each run gives you

  • An email

The time it saves

Monthly on the 1st at 08:00. Doing the same work by hand takes about 90 minutes each time; it runs about 1 time a month, so it saves about 2 hours a month (an estimate). It is medium: 7 blocks.

The flow, block by block

  1. On the 1st of every monthTrigger · ScheduleStarts the flow on a timetable.
  2. My cityWhere · Area of interestSets where the flow looks: countries, cities or specific places, or areas you draw on a map.
  3. HospitalsxMap data · Nearby placesPlaces around a point from xMap’s own places database (300M+ places, refreshed every month): pick the types of place (more than 5,000, such as Restaurant, Cafe, Pharmacy, Hospital or Gas station, or a whole group of them) and how far to look.
  4. Bus stops within 500 mxMap data · Nearby placesPlaces around a point from xMap’s own places database (300M+ places, refreshed every month): pick the types of place (more than 5,000, such as Restaurant, Cafe, Pharmacy, Hospital or Gas station, or a whole group of them) and how far to look.
  5. The fewest nearby firstLogic · Sort and limitPuts the items in order, and can keep only the first ones: the 10 best rated, the 20 nearest, the highest fit scores.
  6. Write the accessibility notexMap AI · xMap LLMTell the AI what to do in plain words.
  7. Email me the listAction · EmailSends one email per run with all the items, or one email per item.

Every block can be changed after you use the template: the city, the type of place, the score, where the results go.

Use it now

Answer a few questions, enter your work email, and it runs in your own account, kept running until you pause it. Use this template.

How to set it up

More for Public transport & transit