Closed rmglennon closed 6 years ago
looks good! we could optionally include some information about the geocoding
(header part) of the response JSON.
eg:
{
"geocoding": {
...
"lang": {
"name": "German",
"iso6391": "de",
"iso6393": "deu",
"defaulted": false
},
...
},
...
we return information in this block about the language which the system decided to use, this is useful for users to debug responses.
the block should always be present and should always contain 4 keys:
note that for the query above I used ?lang=de-ch
which refers to Swiss German and the response was returned in 'High German' ie Deutsch.
thanks, @missinglink - I can add this content over in pelias-doc repository.
This adds a new file about language support to the published search help on mapzen.com.
cc @dianashk @missinglink