Select to view content in your preferred language

Language for directions in Route Widget version 2.4

2984
10
09-29-2011 05:31 AM
MatteoVirga
Emerging Contributor
Hello, how do i set the language for the direction instructions in this version (in the 2.3.1 version the string "<bingculture>it-IT</bingculture>" worked fine)

tnx
Tags (2)
0 Kudos
10 Replies
RobertScheitlin__GISP
MVP Emeritus
Virga,

  Are you using the source code version or the compiled version?
0 Kudos
MatteoVirga
Emerging Contributor
The compiled one
0 Kudos
JosVroegop
Deactivated User
Robert,

I am looking for the same anwser, but i use the source code. What would need to be altered? I would like to show the directions in dutch. I use the 2.3.1 version of your widget in flexviewer 2.4.

Tried to set the <bingculture> to nl-NL in the config, also in the viewerstrings.properties, but with no effect.

Thanks in advance
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mateo and Jos,

   Version 2.4.1 now supports changing direction language.
0 Kudos
JosVroegop
Deactivated User
Robert,

Thank you for the changes in the updated version, works great!
I have a quick question about address format in reverse geocoding results in the "routeInput" window. I only get the cityname (see attached screenshot), where would i have to look to alter this? Here's my RouteWidget.xml

<configuration>
 <routetasksolver>http://tasks.arcgisonline.com/ArcGIS/rest/services/NetworkAnalysis/ESRI_Route_EU/NAServer/Route</routetasksolver>
 <reversegeocode>http://tasks.arcgis.com/ArcGIS/rest/services/WorldLocator/GeocodeServer</reversegeocode>
 <singlelinegeocode>http://tasks.arcgis.com/ArcGIS/rest/services/WorldLocator/GeocodeServer</singlelinegeocode>
 <usebingforgeocode>false</usebingforgeocode>
 <directionslanguage>nl-NL</directionslanguage>
 <dirlengthunits>esriKilometers</dirlengthunits>
 <!-- alttxtbgclr = Route directions alternating text background color -->
 <alttxtbgclr>0xd7d7d7</alttxtbgclr><!-- pale gray -->
 <routesegment color="0xfbec5b" animate="true" alpha="0.8" width="8" />
 <showdirectionarrows>true</showdirectionarrows>
 <addbarrierlabel>Blokkade</addbarrierlabel>
 <addstoplabel>Adres Toevoegen</addstoplabel>
 <locateinstructions>Vul een adres in, druk daarna op de Enter toets</locateinstructions>
 <manualaddtooltip>Klik om locatie toe te voegen</manualaddtooltip>
</configuration>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jos,

   It probably has something to do with the fields that the WorlLocator returns... I will have to look into it.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jos,

   First you have chosen a terrible and old locator you should use this one:

http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_EU/GeocodeServer


So your whole RouteWidget.xml would be:

<configuration>
    <routetasksolver>http://tasks.arcgisonline.com/ArcGIS/rest/services/NetworkAnalysis/ESRI_Route_EU/NAServer/Route</routetasksolver>
    <reversegeocode>http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_EU/GeocodeServer</reversegeocode>
    <singlelinegeocode>http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_EU/GeocodeServer</singlelinegeocode>
    <usebingforgeocode>false</usebingforgeocode>
    <directionslanguage>nl-NL</directionslanguage>
    <dirlengthunits>esriKilometers</dirlengthunits>
    <!-- alttxtbgclr = Route directions alternating text background color -->
    <alttxtbgclr>0xd7d7d7</alttxtbgclr><!-- pale gray -->
    <routesegment color="0xfbec5b" animate="true" alpha="0.8" width="8" />
    <showdirectionarrows>true</showdirectionarrows>
    <addbarrierlabel>Blokkade</addbarrierlabel>
    <addstoplabel>Adres Toevoegen</addstoplabel>
    <locateinstructions>Vul een adres in, druk daarna op de Enter toets</locateinstructions>
    <manualaddtooltip>Klik om locatie toe te voegen</manualaddtooltip>
</configuration>


The reverse geocode address issue has been improved in version 2.4.1.1
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

   I have updated this widget again to fix (Hopefully all) the hard coded English text to make them configurable in the xml file.

Version 2.4.1.2 is now available.
0 Kudos
JosVroegop
Deactivated User
Thanks a lot, just tried out the 2.4.1.2 version and the changes you made are great! 😄
0 Kudos