Tech talk:Automatic area codes in listings
From Wikitravel Shared
How is this going to work for a city or region containing two different area codes? -- Cjensen 10:49, 12 December 2006 (EST)
- I presume one is selected as the default and the others can be substituted manually. Jpatokal 11:07, 12 December 2006 (EST)
This seems like an excellent solution. The defaults aren't going to work for everywhere, but it'll get us a long way and it seems easy to override at different levels for all those fun cities with half a dozen different codes. Nice work. Maj 11:52, 12 December 2006 (EST)
[edit] Telephone number format
For info, ITU-T Recommendation E.123, or the Notation for national and international telephone numbers Recommendation E.123, defines a standard way to write telephone numbers. It recommends the following formats (when dialling the area code is optional for local calling):
Telephone number, national notation: (042) 123 4567 Telephone number, international notation: +31 42 123 4567
The parentheses are used to indicate digits that are sometimes not dialled. Parentheses should not be used in the international notation.
Also, bear in mind that some toll-free and national-rate numbers are either not available internationally, or require a different prefix to that used when dialling internally. Pigsonthewing 13:03, 12 December 2006 (EST)
- So, is it possible from the international notation to determine what parts of the number are local-dial and what parts are area/region/city/country code? Or only in the national version? --Evan 13:30, 12 December 2006 (EST)
- I'm no expert, but I think you remove the first part (delineated by a space, hyphen or point:
+31 42 123 4567 +31-42-123-4567 +31.42.123.4567
- and prepend a zero (or possibly other character, determined by the locale), to turn the second component into the regional code. I'll see if there's a FAQ on such matters, or somewhere to ask. Pigsonthewing 06:20, 13 December 2006 (EST)
- Try
- Pigsonthewing 06:52, 13 December 2006 (EST)

