There are some previous attempts in other projects to recognize administrative borders and to determine which administrative regions (or countries) apply to given coordinates. OSM2PostGIS should offer this functionality so that it can determine which traffic rules apply to which navigation networks. The solution will be based on the current feature recognition scheme:
1. Generate political borders in a separate layer (implemented in revision 56).
2. Produce relevant administrative region polygons from the borders.
3. Use geospatial queries to determine which administrative regions apply to which route segments.
4. Do some initial optimizations so that the solution does not require costly queries for each and every route segment.