Repository navigation
Guide screen
English · Italiano
This page describes the Guide tab of the region page in the app, not the developer guide (Italian).
The Guide is the first tab of the region page, next to Map, Navigator and AI. It shows the Wikivoyage text of the country and a series of cards with practical travel data. The text and almost all the cards come from the downloaded packages and work offline. Weather, alerts, the travel advice notice and the exchange rate come from online files or services, with the last response saved for offline use. How the packages are generated is explained in Data and packages; the commands to test the screen are in the developer guide (Italian).
From top to bottom, the country's Guide shows:
- the category filters ("All" and one entry for each category present);
- the weather;
- "Active alerts", only when there are any;
- the notice "Travel advice updated on …", only when the FCDO has advice more recent than the package;
- "Emergency numbers", with embassies and consulates of the traveler's country and the travel advice of its foreign ministry;
- "Vaccinations";
- "Cities", with the city guides;
- "Public transport timetables not included", only in regions with excluded networks;
- the guide sections, with Quick facts first;
- the Sources.
Cards 2 to 8 appear only with the "All" filter. Choosing a category leaves its sections and the Sources. With a single category the filters do not appear: choosing it would hide the cards with no way to go back.
On wide screens the column is at most 720 dp wide, so lines of text do not reach 200 characters. A card without data does not appear, instead of staying empty. The exception is the emergency numbers: without a single number the card says so (see Emergency numbers).
| Card | Where the data comes from | Offline |
|---|---|---|
| Weather | Open-Meteo, requested by the app | the last saved forecast, with the time |
| Active alerts | GDACS (Global Disaster Alert and Coordination System), USGS (U.S. Geological Survey), Meteoalarm, NOAA tsunami centers, national services | the last downloaded alerts, with the time |
| Travel advice updated | GOV.UK Content API | the last saved date |
| Emergency numbers, embassies | guides package, points of interest | everything |
| Vaccinations | guides package, rules in the app | everything; links to external sites need a connection |
| Cities, Monthly averages | cities package | everything |
| Sections, Quick facts, local terms | guides package | everything |
| Exchange rate | the project's exchange-rates.json
|
the last verified copy, up to 14 days |
None of these requests goes through a project server. None sends the device's precise location (see Alerts without location).
Weather, alerts and updated travel advice follow the same three rules, with the same constant (WEATHER_MIN_REFRESH_MILLIS in core/data).
The same place (weather), the same source (alerts) or the same country (advice) is requested at most every 10 minutes. The limit applies to all callers: opening the guide, the "Refresh the weather" button and the assistant. Reopening the guide several times in a row does not query the services again. A file with a time in the future (clock set back) does not count as recent. For travel advice, the limit also counts a failed attempt.
The last response for each place, source or country stays in a file in the app's storage. Only a response that can be read is saved: an error page does not replace the last good one. The file is first written to a temporary file and then moved into place, so an interrupted write does not leave it truncated.
Each call to Open-Meteo, to the alert sources and to the GOV.UK Content API has a cap of 10 seconds in total. The connection and read timeouts do not limit the whole call: without the cap, on a slow network the card would stay empty for tens of seconds before showing the saved data.
The card at the top of the country guide and of each city guide shows the current weather and the 7-day forecast: high, low and chance of rain. The data comes from Open-Meteo (CC BY 4.0, no key or account). It is the app that queries Open-Meteo, without going through the project. At the bottom of the card are the time of the last update and the source, as the license requires.
In the country guide the weather is that of the location ("Nearby") if the device is in the region. The location counts if it is less than 3 hours old and if there are points of interest of the region within about 5 km. Only the location rounded to 0.1 degrees, about 10 km, goes to Open-Meteo. Otherwise the weather is that of the capital, even when it is not the most populous city (Valletta in Malta). Without a capital, the most populous city applies.
"Nearby" has one cache entry per rounded location, not per region. This way, offline, it does not show the forecast of the place where the user was the day before in the same region.
Cities are found with the Open-Meteo geocoding, by name and country. The coordinates found stay in the preferences, because they do not change. If the full name is not found, the search is retried removing the text in parentheses and then one word at a time from the start. The guides also use official names that the geocoding does not know ("Città di San Marino" is "San Marino"). The coordinates of a city found with a shortened name ("Rotondo" for "San Giovanni Rotondo") are used but not saved, because they might belong to another place.
Offline, the last saved weather remains, as long as it has days that have not yet passed, with the time of the update. "Refresh the weather" is disabled for 10 minutes after the last update and re-enables itself, without reopening the guide. The assistant uses the same card and the same cache (see Weather forecasts).
Below the weather, when there are any, the "Active alerts" card shows the region's alerts. Without active alerts in the region the card does not appear. The sources and the areas of each source are described in Active alerts.
Alerts are in order of severity, then from the most recent. The card shows 5; "Show all (N)" opens the others. Below the alerts there is always the fixed sentence "Unofficial and not in real time: always follow the instructions of the local authorities". At the bottom are the source and the time: "Source: … · updated at …". The attributions of the national services appear only for those that have alerts in the card.
Meteoalarm sends one alert for each period. For this reason each alert with a start and an end shows when it applies, with the day ("From 01:00 to 06:59 on Thu Oct 29"): two identical alerts for the same area are told apart this way. For Meteoalarm the card also shows the national weather service, read from a CAP message of the feed. CAP (Common Alerting Protocol) is the standard format for alerts. The card then shows the issue time of each alert, the link to meteoalarm.org and the sentence about delays required by its terms.
Requests are for the whole world or per country. The region's bounding box is applied on the device, also across the antimeridian. The bounding box comes from the header of the installed map (RegionStorage.mapBounds).
An earthquake stays for three days if it has a magnitude of at least 4.5 (5.0 in very seismic countries), at least 100 reports from people who felt it, or a PAGER alert. PAGER is the USGS system that estimates the impact of an earthquake. Green earthquakes from GDACS and duplicates with USGS are discarded. Of the GDACS events, those that began in the last 14 days count; long events, such as droughts, stay as long as GDACS updates them. In Japan, GDACS shows only earthquakes and volcanoes, because the law on the weather service (art. 23) reserves weather alerts for the JMA (Japan Meteorological Agency). NWS (National Weather Service) and ECCC (Environment and Climate Change Canada) copies for several zones are merged into a single alert, with the zones listed.
Each source is downloaded at most every 10 minutes. The last response stays for offline use ("Last alerts downloaded at"). If a source does not respond (GDACS sometimes times out), its saved alerts remain, and the card says "updated at" with the time of the other sources. "Last alerts downloaded at" appears only when no source responds. If no source has ever responded, the card does not appear.
A region's alerts are downloaded only once, even when the guide, the assistant's emergency card and the answer context ask for them together. The sources start in parallel. When nobody is waiting for the result anymore, the cancellation also interrupts the network call. An unexpected error leaves the card hidden and does not stop the guide.
The sources write only in English, but with fixed patterns: "Yellow Wind Warning issued for Italy - Basilicata", "M 5.1 - 52 km WNW of Malfa, Italy", "Magnitude 7.7M, Depth:12.647km". The app reads their type, color, magnitude, distance, direction and countries (AlertWording.kt).
It then rewrites them in its own language, with the country names from Android: "Yellow wind warning", "Magnitude 5.1 earthquake", "52 km west-northwest of Malfa, Italy". Names of places, cyclones and volcanoes stay as they are. A text that follows no known pattern stays original.
National services have English names of the form " " ("Winter Storm Warning", "Heavy rain emergency warning"). The app turns them into titles in its language (NationalEventWording.kt). For ECCC, the English text of the source stays under the title. The same applies to the original Meteoalarm title, as its terms require.
"Alert notifications" is in More → Settings and is off by default. When on, it runs the same check as the card about every hour, even with the app closed, only with a connection. It notifies only orange and red alerts and tsunamis.
Each installed region gets at most one notification per check: the region name as the title, the first new alert and the number of the others ("+2"). An alert is notified only once; if it affects several regions, the notification goes to the first. The ids of alerts already notified are kept for 7 days. The title is in the app's language, as in the card. Expanding the notification also shows the original Meteoalarm title.
Tapping the notification opens the region's guide, where the "Active alerts" card is. The notifications use the "Alerts" channel, with high importance. Without the notification permission, nothing appears. What the sources of these requests see is in Alerts without location.
A question about a disaster or a weather alert shows the same card in the assistant's answer, and the alerts enter the context. The rules are in Emergencies, alerts and forecasts.
The English guides contain the travel advice sections of the FCDO (Foreign, Commonwealth & Development Office, the British foreign ministry) and of travel.gc.ca. The guides package is rarely republished for the advice alone (see Travel advice at most once a week). For this reason, with a network, the guide checks whether the FCDO has changed the advice after the package.
The English guide reads public_updated_at from the GOV.UK Content API for the region's country. The slug, that is, the country's name in the page address, comes from the link of the FCDO sections of the guide. At most one request per country is made every 10 minutes, and the response is saved.
The date is compared with the footer "Last updated by the UK government: …" of the FCDO sections. Translated guides may have a translated footer: without a readable footer, the day of the guides package version, that is, of its publication, applies. The comparison is by day, in UTC. If the FCDO is more recent, "Travel advice updated on …" appears with "Open", which opens the GOV.UK page.
Without FCDO sections in the guide (Italian guides) the notice does not appear. Without a connection and without a saved response the notice does not appear. An unexpected error leaves the notice hidden and does not stop the guide. The guide asks the GOV.UK Content API only for the date of the advice of the region's country.
The red "Emergency numbers" card comes from the curated table of emergency numbers in the guides package. Each number is a row that can be tapped. The tap opens the phone dialer with the number, without calling. On a tablet without a phone app nothing happens, instead of a crash. Numbers are not repeated in Quick facts, because here they have buttons to call.
A country without a single emergency number has, in place of the numbers, the sentence "This country has no national emergency number. Before you leave, note down the local police and healthcare contacts for the area". Red is reserved for this card.
Below the numbers, the "Embassies and consulates" part lists the missions of the nationality chosen in the app. It appears only with a nationality different from the region's country. Each row has type, name and address, and the buttons to call, open the website and write an email, when available. Without missions in the data, the part says so and points to the foreign ministry website.
The missions come from the OSM points of interest of the region and from the diplomatic_missions table of the guides, taken from Wikidata (see Embassies and consulates from Wikidata). The table enters the app's database with the guides import (Room schema 18, migration from 17 to 18, which creates the empty table). An older app ignores it.
A mission already present on OSM (same phone, or a similar name of the same type) is not repeated, and completes the point with missing type and contacts. A consulate "of Italy" is not merged with the embassy "of Italy". The list is sorted by type (embassies, consulates-general, consulates), then puts the missions in a city of the region first, then sorts by name.
With the last known location, up to 3 missions within 100 km are at the top, with the distance ("Nearby"). Then come the others ("Elsewhere in the country"). Beyond 100 km a mission is not "near", and the card shows only the list.
The website can be edited by anyone on Wikidata, so it is opened only if it is an http or https address; without a scheme, https is assumed. The missions also appear in the preview of a country that is not downloaded, which takes the country from the catalog.
At the bottom of the card is the link to the travel advice of the foreign ministry of the chosen nationality: Viaggiare Sicuri for Italy and San Marino, the Auswärtiges Amt for Germany, travel.gc.ca for Canada and so on. Only services with a page for each destination are included. Ministries that publish only notices on countries at risk (India, Brazil, Israel, Latvia) would say nothing about most destinations.
For nationalities without a suitable service, the link is that of the British government's advice (GOV.UK). GOV.UK covers 226 destinations, is constantly updated, free and openly licensed. The row says that it is in English, that safety and health apply to everyone and that the entry requirements are those for British citizens.
The app only adds the link: the ministries' texts do not have an open license, so no text from the Farnesina or the other ministries enters the app. The name of the service stays the official one, in its own language.
The Viaggiare Sicuri row opens the destination country's page on viaggiaresicuri.it. The page is found from the ISO alpha-3 code (Kosovo: KSV). The site's home page is used for territories without a page on the site (for example Greenland and the Faroe Islands), for Italy and the Vatican, which have only an almost empty page, and for the Canary Islands, which have no alpha-3 code. The same rule applies in the vaccinations screen and in the assistant.
The "Vaccinations" card opens the "Vaccinations for your trip" screen. The card shows "Departure: …, destination: …" and the required certificates ("Yellow fever: certificate required", or "required on exit"). Without certificates it says that, in the app's data, no certificate appears to be required. With the departure equal to the destination, it asks to choose another one, because without the sentence the absence of results would not be understood. Without vaccination data in the guides package the card does not appear.
The screen asks for:
- departure and stopovers (up to 4), with the layover hours and any exit from the airport;
- countries visited before (up to 8);
- the age of a child under one year;
- a stay of more than four weeks in the departure country, asked only if the departure has the polio exit requirement;
- any Hajj or Umrah.
The proposed departure is the country of the nationality; a departure chosen by hand is kept for next time. With the Hajj or Umrah, the calculation also applies when departing from the destination country.
The result divides the vaccinations into mandatory, recommended and to discuss with a doctor. At the top there is always a notice that reminds the user to check with the embassy and the official sources, and to consult a doctor 4 to 6 weeks before leaving. Without required certificates, the text says that it is not a guarantee, with the date on which the data was verified.
The calculation is offline: the rules are Kotlin in the app, and the data arrives in the vacc_* tables of the guides package (see Vaccinations for your trip). The outcome also reaches the assistant when the question is about vaccines (see Vaccines).
- For a child under 9 months, yellow fever is only "Discuss with a doctor", and does not appear among the recommended ones.
- A stopover of unspecified duration or over 12 hours is described as a stopover, not as an origin.
- "More than 12 hours" reaches the calculation as an unspecified duration: a fixed number (for example 13) would hide the rules above 24 hours.
- The question on polio on exit also asks whether the person lives in the departure country.
- Those who live in Saudi Arabia and do the Hajj or Umrah see the meningococcal vaccine as mandatory.
Colombia - San Andres and Providencia is entirely outside Colombia's risk area. With this destination, the yellow fever entries tied to the destination do not appear (YF_RISK_FREE_REGIONS); the entry rules remain. This also applies to the assistant's summary.
Egypt, India, Nepal and Iran may ask for the polio vaccination from those arriving from countries where it circulates, without saying which. For these four countries the screen shows a "worth considering" entry for any departure, with the link to the foreign ministry site of the chosen nationality (or to GOV.UK, with the note that the requirements are for British citizens). The reason is in Polio on entry without a list.
When the polio data is more than 120 days past its last verification, the screen shows "Polio data may be out of date", with the last WHO statement on polio recorded in the data.
The routine vaccinations entry links the departure country's schedule on the WHO data portal (WHO Immunization Data portal). The address is the same one the portal builds, with the ISO alpha-3 code. For the 36 countries the portal does not have, the row does not appear. The app only adds the link, because the portal's data has non-commercial terms of use. The screen also opens the destination's page on Viaggiare Sicuri (see Viaggiare Sicuri).
The "Cities" card shows the number of city guides and the five most populous cities of the region, with a star on the capital and the inhabitants. A city opens its guide right away; "See all", or a tap on the card, opens the full list. Population and capital come from the cities package (see Main cities and coordinates).
The list and the city guide are in a full-screen dialog above the Guide tab, not in a separate screen. Back goes first from the city guide to the list, then closes the dialog. A city opened from the card instead goes back to the country guide.
The city guide has the same filters and the same sections as the country guide, with History and Climate from Wikipedia after the Wikivoyage sections (see City history and climate). Above the sections are the city weather, the "Monthly averages" and, in Barcelona, Paris and Lyon, the note on timetables not included. The last city guide opened is used by the assistant to choose the city for forecasts.
The "Monthly averages" card, below the weather, shows the current month: high, low, rain in mm and rainy days. "All months" opens the table of the twelve months, with the current month highlighted also in bold, not only by color (ClimateCard in GuideClimate.kt). At the bottom is the source, "Source: Wikipedia, climate table", which opens the page.
The table comes from the cities package and works offline (see City monthly averages). With the "Climate" filter the card stays, because it is the same information as the section. Old apps ignore the table. A read error leaves the card hidden and does not stop the guide. The assistant uses the averages for offline forecasts (see Offline forecasts).
Public transport networks excluded because of the license are declared in the "Public transport timetables not included" card of the region guide and above the guide sections of Barcelona, Paris and Lyon. Travelers to Paris can thus see that the metro timetables are missing by choice, not by mistake. The licenses were verified on Oct 1, 2026.
- TMB (Barcelona): the license is valid only for the app that requests it and is revocable.
- Île-de-France Mobilités and TCL (Lyon): the Licence Mobilités requires those who reuse the data to be registered, and a public file cannot guarantee that.
The other networks that are missing are listed in the region's Content (see Networks not included).
The sections come from the guides package in the app's language: Wikivoyage, the Wikipedia sections and, in the English guides, the travel advice. Each section has, next to the title, a Material Symbols icon of its category, in a filled circle. The category label above the title is left out when it would repeat it ("Quick facts").
The icon colors are three colors of the scheme, one per group of meaning: logistics; local life and culture; caution (health, safety, customs, good to know). They are solid colors, valid also with the system colors, in light and dark. With some themes the three light colors of the cards look the same, so they are not used.
Some travel advice sections are written for the citizens of one country only: entry and consular assistance of the United Kingdom and Canada, and the Israeli-only zones of the FCDO page on Palestine. The guide shows them only with that nationality, and updates them when the nationality changes. The section link carries the suffix #for-nationality=…, which the app removes before showing and opening it. Which sections they are is in Sections for a single nationality.
Below the title of each machine-translated section appears the translation notice, and in the Sources the page has "machine-translated" next to the site. The reason is in Machine translation notice.
The "Quick facts" section is always at the top of the sections; the others stay in their order. The published text stays as it is for the assistant, and the screen recomposes it. The order of the fields is capital, language, electricity, time zone, currency, dialing code, driving side and main transport. Where the fields come from is in Quick facts.
The app adds the country's language and currency when the guide does not have them, from Android's data ("Japanese yen (JPY)"). "Main transport" counts train and metro stations, bus stations, ferry ports and airports from the region's points of interest, starting from the most common vehicle type. In the time zone, "UTC" becomes "GMT". The emergency numbers are removed, because they have their own card. Added labels and values are in the language of the installed guides, recognized from the field names.
Below "Currency" appears the rate from the currency of the chosen nationality to that of the country, with four significant digits. An example: "1 EUR ≈ 37.52 THB (Frankfurter, Nov 11, 2026), indicative". Four digits are enough for a mental calculation, without the false precision of the data. A rate below 0.01 is shown inverted: "1 EUR ≈ 1,733 ARS" instead of "1 ARS ≈ 0.0005772 EUR". The date is that of the older of the two rates used.
For currencies with a parallel market (VES, MMK, IRR, ARS, LBP, NGN), a note is added that the rate is official and that the actual exchange rate may be very different. For the Cuban peso, a note is added that the rate is that of the Central Bank of Cuba and may differ from the actual exchange rate.
The rate comes from exchange-rates.json, the project's signed file (see Exchange rate). The app downloads it when the guide is opened and with the catalog check, only when it has changed: the request sends the ETag of the saved copy. The ETag is the identifier that the site gives to each version of a file; with the same ETag the site answers without sending the file again. Offline, or with a file rejected by the signature check, the last verified copy applies.
The rate of a currency not updated for more than 14 days disappears, because an old rate would look like today's. Without a nationality, with the same currency or without a known currency for the country, the row does not appear.
Local terms are words of the guide explained by a Wikipedia entry: dishes, drinks, festivals, customs, clothing and instruments (see Local terms). They exist only in the country guide.
In the Guide, each term is underlined the first time it appears in a section, by name or redirect, regardless of accents and capitals. The underline says that the word can be tapped, which color alone does not say. Between two overlapping names the longer one wins (termLinks in GuideTermLinks.kt of core:data).
Tapping the term opens a sheet with the introduction and the link to the entry (GuideTermSheet in core:ui). The same sheet opens from the assistant's answers (see Local terms). With the assistant available, "Ask the assistant" opens the AI tab with "What is …?" already written.
The Sources appear only once at the bottom of the guide, instead of under each section, as the CC BY-SA attribution requires. They list the pages the shown sections come from, with the page title and the site, each one openable. The FCDO pages have different names for safety, health, entry requirements and consular assistance, otherwise the rows would look identical. The license is in the Licenses screen.
A source cited in an assistant answer opens the Guide on the cited section. The guide chooses the section's category, scrolls to it and highlights the sentences used in the answer. A section of a city opens the city guide. The list scrolls once per request: choosing another category by hand afterwards does not make it jump again.
After a language change, the guides in the new language arrive a few seconds later (see Catalog and cities after the change). The Guide reloads at every change of the installed guides version, so a screen that is already open does not stay in the previous language. The same applies to the vaccination data.
The guides of all countries are downloaded at first launch, so the Guide exists even for a country that is not downloaded (preview). In the preview the country comes from the catalog, but only for the diplomatic missions.
The screen is in feature:guide, split into files per section (GuideScreen, GuideSections, GuideEmergency, GuideCities, GuideClimate, QuickFacts). The weather and the alerts are in core:ui, because the assistant also uses them.
The vaccination rules are Kotlin that works offline, in the vaccination package of core:data, and read the vacc_* tables. The screen is in feature:guide. The outcome also reaches the assistant, in the context, when the question is about vaccines.
The alerts package of core/data contains the source parsers, the selection rules (selectAlerts) and OnlineAlertsRepository. The parsers are those of GDACS, USGS and Meteoalarm (JsonAlertParsers, MeteoalarmParser) and of the national services: NWS, ECCC, GeoNet, JMA and the tsunami centers. The addresses of the national services are in NationalAlertUrls, and mergeZones merges the copies of the same alert per zone.
The AlertsCard card is in core/ui, because the guide and the assistant's emergency card use it. For this reason core/ui depends on core/data, and MapBounds with the reading of the PMTiles header is in core/data (RegionStorage.mapBounds). AlertWording.kt reads the fixed patterns of the English texts of the sources; AlertText.kt of core/ui rewrites them in the app's language. The text in the app's language is a function without Compose (alertText(alert, resources, locale)), so both the card and the notifications use it.
The alert notifications are in core/sync, which for this reason depends on core/ui. AlertNotificationWorker runs with WorkManager every hour, with a connection. AlertNotificationRunner decides which alerts to notify, only once. AlertNotificationSwitch handles the switch and the scheduling.
The updated FCDO travel advice goes through TravelAdviceUpdates in core/data/advice. The notice in the guide is TravelAdviceNotice in feature/guide.
WeatherRepository in core/data serves the guide card and the assistant's forecasts, with the same cache. The card calls Open-Meteo for the forecasts and for the geocoding, which finds the cities. The WeatherCard card is in core/ui, because it also appears under the assistant's answers.
ExchangeRates in core/data reads and validates exchange-rates.json; HttpExchangeRates in core/sync downloads it with SignedFileCache, like the catalog. The rate text is exchangeRateText in QuickFactsExchangeRate.kt.
- Alerts are not official or in real time: they are downloaded when the guide is opened, at most every 10 minutes per source, and the card says so (see What the card shows).
- Alert notifications arrive about every hour and only with a connection (see Alert notifications).
- The notice on updated advice exists only for the FCDO, not for travel.gc.ca or for the Italian guides (see When it does not appear).
- The exchange rate is indicative and disappears after 14 days without updates (see Exchange rate).
- In the preview of a country that is not downloaded, weather, vaccinations, exchange rate, and the language and currency added to Quick facts are missing, because the country is read from the installed region (see Language change and preview).
- The coordinates of a city found with a shortened name are searched again at every request, because they are not saved (see City coordinates).
- The vaccination data is updated by hand: after 120 days the screen warns about polio (see Polio).