Maps: traffic incidents balloon language

Good morning:

I’m trying to get balloon information about a traffic incidents in Spanish. Now, only shows in English (as you can see in the following attachment).

2020-01-07_13-59-09

Could someone help me and tell me how to get that information in Spanish?

Thanks in advance.

Best regards.

Hi!

Currently turnOnVectorTrafficIncidents method doesn’t provide any additional options for changing the language. You can however customize all traffic incidents details by calling a traffic service directly:

IncidentDetailsQuery incidentDetailsQuery = IncidentDetailsQueryBuilder.create(
    IncidentStyle.S1,
    tomtomMap.getCurrentBounds(),
    (int) tomtomMap.getZoomLevel(),
    "-1")
    .withIsoLanguage("es")
    .build();

trafficApi.findIncidentDetails(incidentDetailsQuery, new IncidentDetailsResultListener() {

@Override
public void onTrafficIncidentDetailsResult(IncidentDetailsResponse incidentDetailsResponse) {
    //traffic incidents with custom language description.
}

@Override
public void onTrafficIncidentDetailsError(Throwable throwable) {

}

});

1 Like