File size: 1,270 Bytes
7e25f7a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | """
Location Core — country/city estimation from multiple evidence sources.
Combines:
- GPS coordinates → reverse geocode to country/city (offline heuristic)
- OCR text → language detection → country inference
- License plate format → country
- Scene labels → environment type
- Detected objects → location hints (e.g. "left-hand drive" cars)
Pure stdlib — no external geocoding APIs. Uses a coordinate-bounding-box
approach for country estimation and language-to-region heuristics.
"""
from cores.location.geography import (
coords_to_country,
coords_to_city_estimate,
country_bounding_boxes,
coordinate_to_country,
)
from cores.location.language import (
detect_script,
script_to_regions,
text_to_country_hints,
)
from cores.location.plates import (
plate_format_to_country,
)
from cores.location.estimator import (
LocationEstimator,
LocationEvidenceCollector,
)
__all__ = [
# geography
"coords_to_country", "coords_to_city_estimate",
"country_bounding_boxes", "coordinate_to_country",
# language
"detect_script", "script_to_regions", "text_to_country_hints",
# plates
"plate_format_to_country",
# estimator
"LocationEstimator", "LocationEvidenceCollector",
]
|