CountryCode values on GeocodeRequest

48 views
Skip to first unread message

Dmitry Razumikhin

unread,
Oct 31, 2016, 6:41:28 AM10/31/16
to OpenRouteService.org
Hello!

I send GeocodeRequest as follows:

<?xml version="1.0" encoding="UTF-8"?>
<xls:RequestHeader/>
<xls:Request methodName="GeocodeRequest" requestID="123456789" version="1.1">
<xls:GeocodeRequest>
<xls:Address countryCode="RU">
<xls:freeFormAddress>Москва, Красная площадь</xls:freeFormAddress>
</xls:Address>
</xls:GeocodeRequest>
</xls:Request>
</xls:XLS>


but I got error response:

<xls:XLS xmlns:xls="http://www.opengis.net/xls" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1" xsi:schemaLocation="http://www.opengis.net/xlsXLS.xsd">
<xls:ResponseHeader xsi:type="xls:ResponseHeaderType" sessionID="Error"/>
<xls:_Body xsi:type="xls:ResponseType" requestID="123456789" version="1.1">
<xls:ErrorList>
<xls:Error errorCode="Unknown" severity="Error" locationPath="Can not connect to Nominatim!" message="RequestXLSDocument"/>
</xls:ErrorList>
</xls:_Body>
</xls:XLS>


If I set countryCode to "DE" or "EN" all works normally. 

My questions:
1) What countryCode values are supported?
2) Why countryCode seems like language code, not a _country_ code?
3) What is a best strategy to working with ORS - to use countryCode as a preference language code or something else?

Best regards,
Dmitry.

Maxim Rylov

unread,
Nov 4, 2016, 11:04:51 AM11/4/16
to OpenRouteService.org
Hello Dmitry,

At the moment, ORS supports the following languages English, German, French and Italian.



2) Why countryCode seems like language code, not a _country_ code?
I agree, it is a bit misleading, but current implementation interprets countryCode attribute as a language code.

Kind regards,
Max

Dmitry Razumikhin

unread,
Nov 7, 2016, 6:37:00 AM11/7/16
to OpenRouteService.org
>> At the moment, ORS supports the following languages

Do you have any plans or roadmap to support Russian language?

Maxim Rylov

unread,
Nov 9, 2016, 10:55:35 AM11/9/16
to OpenRouteService.org
In the near future, we do not have any plans to support more languages.
Reply all
Reply to author
Forward
0 new messages