Skip to Content
ComponentsCity Map

City Map

A City Map puts a set of locations on an interactive map: dark stores, warehouses, supplier sites, customer clusters. You upload the locations as a CSV and, optionally, a logo for the pins. Players explore the map, compare locations side by side and plan routes with real road distances and travel times.

What it’s for

  • Network decisions: which dark store to expand, close or restock, with each store’s numbers one click away.
  • Route planning: the order to visit stops in, and how long it takes by two-wheeler or by van.
  • Context for a task: the geography behind a case, next to the brief.

In a quick-commerce simulation, a Kanpur Dark Stores map with each store’s orders per day, delivery radius and zone lets a team compare stores and plan a replenishment run before handing in their plan.

Setting it up

Add a City Map to the simulation, a round, a subround or a task, then click Edit on its card. The City Map Configuration box holds everything below.

FieldWhat it doesDefault
Component NameThe map’s title for players.“City Map”
DescriptionShown to players under the map’s name on a task page.The catalogue’s description (“Import a CSV of locations and attach a pointer logo for map pins.”). Replace it, because players see it.
Locations CSVUpload locations CSV (later Replace locations CSV) loads the locations. The card then shows how many locations loaded and the file name, with Download uploaded CSV. Download template CSV gives a sample.None
Pointer Logo (Optional)Upload pointer logo (later Replace pointer logo): an image used for every pin and for the clusters of pins. Without one, pins are plain red dots. Download uploaded logo gets the file back.None
Pointer nameA name for what the pins stand for, e.g. “Dark Store”. It is only shown in the editor. You can set it with or without a logo.“Dark Store” once a logo is uploaded
Vehicle TypesThe vehicles players can pick to estimate travel time: a name and an average speed in km/h for each. Add vehicle type adds one; Remove deletes it.None
Open map previewOpens the map as players will see it, so you can check the locations and the logo. Available once a CSV is uploaded.

Under the fields, a summary lists the uploaded file, the logo, the pointer name, the number of locations and the number of vehicle types.

The template stores the uploaded CSV, not the locations themselves. The editor reads the locations from the file again each time you open it (“Loading saved locations…”).

The locations CSV

The first line is the header. Header names are matched without regard to case. Wrap any value that contains a comma in double quotes, e.g. "6:00 AM, 11:00 PM" or "1,20,000". The builder and the players’ map read the file the same way.

ColumnNeeded?Used for
latYesLatitude in decimal degrees, e.g. 26.4667.
lngYesLongitude in decimal degrees, e.g. 80.3490.
nameRecommendedThe pin’s tooltip, the details panel, search, and the record of which locations a team has visited. Without it, locations are called “Location 1”, “Location 2” and so on.
idRecommendedTells locations apart. Without it, rows are numbered.
city, stateOptionalShown under the name in the tooltip and details.
Any other columnOptionalShown as a field in the location’s details and in comparisons, and searchable. Underscores become spaces in the field’s label, so orders_per_day reads as “Orders Per Day”.

A column whose name contains zone, area, polygon, boundary or geojson is treated as the location’s zone. See Visits and zones.

The template CSV has these columns: id, name, lat, lng, city, state, packing_time_min, delivery_time_min, eta_min, delivery_radius_km, operating_hours, orders_per_day, zone_name.

id,name,lat,lng,city,state,orders_per_day,zone_name KNU-001,KNU Kidwai Nagar,26.4667,80.3490,Kanpur,Uttar Pradesh,723,Zone A KNU-002,KNU Civil Lines,26.4747,80.3319,Kanpur,Uttar Pradesh,612,Zone B

A comma inside a value without quotes splits it, and shifts every later column of that row. A quote inside a quoted value is written twice ("").

Vehicle types

Each vehicle type has a name (e.g. “Two Wheeler”) and an average speed (at least 1 km/h; a new one starts at 20). Players pick one on the map’s Route tab, and the map works out travel time as road distance ÷ speed for each leg of their route. With no vehicle types, the tab says “No vehicle types configured for this simulation yet.”

What players see

On a task page, the map is a card in the side column: its name and description, a small picture of the locations, the number of locations, how many the team has visited (or “None visited yet”) and the team’s current zone. Open map opens the full map in a large dialog: “Select two or more locations to compare them and plan a route. Search finds any attribute.”

A map on a task also adds an Explore … step to the task’s progress card. It ticks once anyone on the team has visited a location.

On a round or phase page, the map is a wide tile showing the same picture; opening it shows the full map. A map attached to the simulation itself appears as a tile on every round and phase page.

A map attached to a round, subround or task that is still locked isn’t shown until it unlocks.

Using the map

The full map opens fitted to all the locations. Players can:

  • Pan and zoom, with zoom buttons at the bottom right. The base map follows the app’s light or dark theme and labels places in English.
  • Expand clusters. When zoomed out, nearby pins are grouped into a pill showing the logo and a count. Clicking one zooms in; from close in, every pin shows on its own.
  • Hover a pin to see its name, city and state.
  • Search with Search any attribute…: it matches the name, city, state, id and every other column (every word typed must match), and lists up to 20 locations. Picking one flies to it and selects it.
  • Select a location by clicking its pin. The details panel shows its name, city and state, every other non-empty column as a field, and Open in Google Maps.
  • Select several. Click more pins to build a selection: the panel shows “N locations selected”, a numbered chip per location (with a remove button) and Clear all, and two tabs.
TabWhat it shows
CompareEach field, with every selected location’s value under its number. Numeric fields get a bar against the largest value, and the largest is in bold. “X of Y fields differ”, with an Only differences switch.
RouteThe stops in selection order; drag to reorder them. Each leg’s road distance and the total, Show route on map (draws the route with a vehicle moving along it), a Distance matrix of road distances between every pair of stops (with your route’s legs highlighted), and Travel time for the chosen vehicle type.

Road distances and routes come from Google Maps, through the server. If Google can’t find a road route, or the server has no Google Maps key configured, the tab shows “Couldn’t calculate the route: …” instead.

Visits and zones

While a run is running, the map keeps track of what each team has looked at:

  • Visited locations. Selecting a location, by clicking its pin or picking it in search, records it as visited for the whole team. Visited pins show faded on the map and green in the small picture. Deselecting doesn’t undo a visit.
  • Current zone. If the CSV has a zone column (a column name containing zone, area, polygon, boundary or geojson), selecting a location with a value there makes that value the team’s current zone. It shows as “Zone: …” in the map’s header and on the card.

Visits are recorded by location name, so two locations with the same name count as one. Nothing is recorded in the builder preview, or while the run is paused.

Each team has its own visits and zone for each map. Each run gets its own copy of the CSV and the logo, so replacing them in the template doesn’t change a run that already exists.

Triggers

No trigger events or actions are offered for City Maps. The location events (Location Reached, Zone Entered, Zone Exited, All Locations Visited) are hidden in the builder because they aren’t in use; a trigger saved with one before they were hidden still fires.

Limits and gotchas

  • Quote values that contain commas in the CSV.
  • Use lat and lng exactly. Headings such as latitude or long aren’t recognised, and a location without coordinates sits at 0, 0 (off the coast of Africa), which zooms the map out to the whole world.
  • Up to 25 locations can be in the distance matrix at once.
  • Routes and distances need Google Maps to be configured on the server.
  • Visit tracking uses names, so give every location a unique name.
  • The small picture on cards and tiles draws at most about 1,500 locations, evenly sampled, and leaves out any at 0, 0.
  • Data Resource: a table of records that triggers and formulas can use, when the locations’ numbers need to drive the scenario.
  • Tasks: where maps usually sit.
  • Player dashboard: how maps appear on round and phase pages.
Last updated on