This is the documentation of version 1.0.0-rc.0. Go to the latest version, 1.0.0-rc.5.
TomTom Maps for JavaScript
    Preparing search index...

    Type Alias GeopoliticalView

    GeopoliticalView: typeof geopoliticalViews[number]

    The perspective disputed territories are shown and returned from.

    It decides the borders, the territory and sea names the map draws, and the country a disputed place belongs to in search and reverse geocoding results.

    • Unified: The international view.
    • A country code: That country's perspective. AE is the Arabic view, shared by Bahrain, Kuwait, Oman, Qatar, Saudi Arabia and the United Arab Emirates.
    • Unset: Each TomTom API picks the default view for the country the request comes from. From India, the APIs serve only the IN view.

    Not every API serves every view. A view an API does not serve is left out of that request, so the API falls back to its default for the caller's country:

    API Views it does not serve
    Map vector tiles CN, RU
    Search, place details, reverse geocoding KR, US
    Geocoding AE, BN, CL, DZ, KR, MY, PH, US, VN
    // The map and every service, from India's perspective
    TomTomConfig.instance.put({ apiKey: 'YOUR_API_KEY', geopoliticalView: 'IN' });