Search code examples
javascripthere-api

Avoid national borders in HERE maps


Is it possible to request route which will be located only in one country without crossing national borders of other countries?(I'm using JS)


Solution

  • No, our API does not have option to restrict routing to certain country.

    A workaround would be to list all neighboring countries in &excludeCountries parameter:

    excludeCountries - Countries that must be excluded from route calculation. 
                       Type: list of common:CountryCodeType.
                       example: excludecountries='AUT,CHE'