Gotchas at a World Geography Level
The real world is much more complex than we expect. Be sure to research first.
A colleague once shared information about two small areas in Switzerland that are surrounded by their respective neighboring countries: Campione d'Italia in Italy and Büsingen am Hochrhein in Germany. These regions are known as enclaves, which are parts of a state fully enclosed within the territory of another state. True enclaves, like Campione and Büsingen, cannot be accessed without going through the territory of a single other state that surrounds them.
Enclaves present unique software design challenges. Take Campione, for instance. From a software perspective, systems must consider various factors. Taxation and customs are an issue, as Campione joined the EU customs territory in 2020 but remains outside the EU VAT area. Instead, it has its own local consumption tax based on Swiss VAT rates.
This means online shops and accounting software would need to handle two different tax systems. Public services in Campione follow Italian law, but firefighters, ambulances, and healthcare services come from Switzerland. Systems providing these services must adhere to Italian law while delivering Swiss-provided services.
Currency is another area where systems must adapt. The Swiss franc is the primary currency used, although the euro is officially legal tender. Salaries are paid in Swiss francs, and payroll systems must handle transactions in both currencies. Address and geolocation present further complexities, as Campione uses Swiss postal codes and phone numbers, except for the town hall, which has an Italian phone number.
Address validation, shipping, and phone systems must accommodate these differences. Vehicle registration in Campione requires registration in Italy, in Como, and comes with Italian license plates.
Data privacy is a crucial consideration, as Campione falls under both the GDPR and the Italian Privacy Code. Many services, such as healthcare and utilities, are Swiss, meaning data flows across the border. Any system storing personal data must comply with both Italian and Swiss privacy laws. Healthcare in Campione is an interesting case, as residents can access Swiss hospital care through bilateral agreements, but insurance contracts must comply with Italian law. Health insurance systems must cross-reference Swiss eligibility and Italian contracts.
Education systems in Campione are Italian, but students may attend Swiss schools due to proximity. Student and scholarship systems enroll pupils in a school across the border and follow two different curricula. Enclaves like Campione and Büsingen present extreme cases of software design challenges, but similar issues can arise elsewhere.
Livigno, for example, is Italian but outside the EU customs territory and VAT area, while the Canary Islands are Spanish and in the EU but outside the VAT area. Each of these attributes—currency, tax, customs, mail, phone, and law—are independent of country codes.
When designing software, it's essential to research these enclaves and their unique attributes thoroughly. Be prepared for a complex landscape that goes beyond simple country codes.
Written by urgent.news from HackerNoon's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.