13 – Internationalization

Situm supports the internationalisation of the following cartography elements:

  • Buildings: name, address and information
  • Floors: name
  • Point of Interest (POI): name and information
  • POI Categories: name.

Please note! Internationalization works in Situm SDKs (Android v>= 2.80.1, iOS v>= 2.54.0, Cordova and React Native coming soon), REST APIs and Map Viewer

In order to internationalize these elements, you will need to use custom fields.

  • The key will a concatenation between the field name and the translation language (<field name>_<language id>), language specified in following ISO_639-1 convention
  • The value will be the translation of the field.

The list of accepted custom fields is shown below

BuildingFloorPOIPOI categories
name_lang -> name
description_lang -> address
info_lang -> information
name_lang -> namename_lang -> name
info_lang -> information
name_lang -> name

For example, if we want to translate the name of a POI (Point of Interest) into German, the key will be name_de and the value Eingang:

Internationalization example

As a more complete example, assume we have a building called “My Building” with the following information and custom-fields:

BuildingFloorPOI
Name: “My Building”

Address: “My address”

Description: “Some building info …”

Custom fields:
* name_es: “Mi edificio”
* name_ar: “بنايتي”
* description_es: “Mi dirección”.
* description_ar: “عنواني”
* info_es: Alguna información sobre el edificio
* info_ar: “بعض معلومات البناء …”
Name: “GRND”

Custom fields:
* name_es: “BAJO”
* name_ar: “ب.”
Name: “Parking”.

Info: “Opening hours: 08:00 – 23:00”.

Custom fields:
* name_es: “Aparcamiento”
* name_ar: “موقف سيارات”
* info_es: “Horario: 08:00 – 23:00”
* info_ar: “ساعات عمل مواقف السيارات: 08:00 – 23:00”

Effect of internationalization on Map Viewer #

The Map Viewer will show internationalized elements in the appropriate language, as long as they have a valid translation. Otherwise, the fallback language (english) will be used.

Effect of internationalization on Mobile SDKs #

The SDKs use automatically the language set on the device and generate the API headers automatically (see previous API explanation). Therefore, the data is substituted automatically in the appropriate SDK fields with the corresponding translation. See Situm SDK Internationalization section for more information and a complete usage example.

Effect of internationalization on Rest API #

The effect of the previous configuration is to substitute the appropriate fields in the API responses with the right translation. The REST API accepts the header “Accept-Language” and based on its value, translates the appropriate fields. If no translation exists, it falls back to the original field value as specified in the Situm Dashboard formulary. For example:

Request when no language is specified (or when a language that has not been specified in the custom-fields is provided):

curl --location --request GET 'https://dashboard.situm.com/api/v1/pois' \
--header 'Authorization: Bearer <Token>'

Request for German language:

curl --location --request GET 'https://dashboard.situm.com/api/v1/pois' \
--header 'Accept-Language: de' \
--header 'Authorization: Bearer <Token>'

Subscribe to our newsletter

BASIC INFORMATION ON DATA PROTECTION

Data controller: SITUM TECHNOLOGIES, S.L.
Contact: Data controller: situm@situm.es
Responsible for protection: dpo@situm.es
Purpose and legal basis: To manage the sending of SITUM newsletters only with consent.
Legitimation: Express consent of the interested party.
Recipients: The data will not be passed on to third parties with the exception of legal obligations.
Retention period: As long as the interested party remains subscribed to the newsletter (a link to unsubscribe will be available in each newsletter sent by Situm).
Rights: The interested party may at any time revoke their consent, as well as exercise their rights of opposition, access, conservation, rectification, limitation, deletion of data and not be subject to a decision based only on automated data processing, by writing to SITUM at the addresses indicated.
Additional Information: You can consult additional and detailed information on Data Protection in our privacy policy.

Please, download your copy here

Thank you for downloading our whitepaper. Please do not hesitate to contact us if you would like to know more about how our solutions can help your business. Download whitepaper


Close window