Children per school, district by district
Where children live far from a school, as a ready data story.
What it does
Every year before school starts: how many children live in each part of your city and how many schools are within 2 km, with the most crowded areas written up by xMap AI as a data story, emailed and mapped.
In one sentence: Monthly on the 1st at 08:00, in Cairo, count who lives around, sort them by children_0_19 and keep the top 60, count the schools within 2 km of each, work out new fields, sort them by per_school and keep the top 15, write a report with xMap AI, then show them on a map and email the list to you.
Why it is useful
School places are a story every year. This flow does the counting so the reporter can do the interviews.
Who it is for
Media, newsrooms & publishing. Newsrooms, broadcasters, publishers and media sales teams who need local stories, audiences and advertisers first. Every use case for media & publishing
Best use cases
- An education reporter
- A data journalism team
- A parents’ publication
What each run gives you
- A map
- An email with the draft
The time it saves
Monthly on the 1st at 08:00. Doing the same work by hand takes about 240 minutes each time; it runs about 1 time a month, so it saves about 4 hours a month (an estimate). It is medium: 10 blocks.
The flow, block by block
- On the 1st of every monthTrigger · ScheduleStarts the flow on a timetable.
- My cityWhere · Area of interestSets where the flow looks: countries, cities or specific places, or areas you draw on a map.
- People in every block of the cityxMap data · DemographicsWho lives in an area: the number of residents, men and women, and nine age groups, from xMap’s population grid (hexagons of about 0.1 km², about 100 countries).
- Best 60 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.
- Schools within 2 kmxMap 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.
- Children per schoolLogic · Calculated fieldAdds fields worked out from the others: a number, a text or a yes/no.
- Best 15 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.
- Write the data storyxMap AI · xMap LLMTell the AI what to do in plain words.
- Show them on a mapAction · Show on a mapShows the results as points on a map, with the area of interest.
- 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
- Build your first flow in ten minutes: From a blank page to a flow that emails you a ranked list every morning.
- Ask the map a question: How many of a kind of place, how many people for each, and where the gaps are, answered on the spot.
- Count what is around each of your places: Competitors, footfall magnets or services within a distance of each site.
- Compare sites side by side: Two or three spots measured the same way, one column each, the best of every row marked and the best site and why.
- Location intelligence: Using where things are, and what is around them, to make business decisions.
- Site selection: Choosing where to open a store, branch, clinic or facility.
- How to score candidate store sites: Compare sites on residents, competitors and neighbours, with an AI score and a reason.
More for Media, newsrooms & publishing
- Newly opened businesses for my advertising sales team: New businesses scored as advertisers, with the owner, every weekday.
- Where to put the next billboard: Blocks with many residents and shops, ranked as billboard sites.
- New in town: a weekly column draft: A draft "new in town" column every Thursday, from what opened this week.
- Newsstands near stations, for magazine distribution: Newsstands near every station, for the magazine route list.
- New cinema screens for my film distribution team: Cinemas in your region, chain or independent, with the programmer.
- Brands opening many branches, for sponsorship sales: Brands opening many branches, with a sponsorship angle each.