GET actrealtime/locale?callback={callback}

Use the getlocalelist to get a list of what languages can be used as the locale parameter. It can be called a second time with a locale parameter that matches one of the previously returned localestrings to see the human-readable language names in that given language. Note: The locale parameter in all requests is meant to match values in this list, but it does support the inheritance model of Java Locale.If the given language is not supported then the default language of the Transit Authority is used.No indication of which language used is given in the response, so it is best to use a locale string out of the list returned by getlocalelist.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
callback

string

None.

Body Parameters

None.

Response Information

Resource Description

A well-formed XML or JSON document will be returned as a response.

RequestResponseOfLocaleRequestResponse
NameDescriptionTypeAdditional information
bustime-response

LocaleRequestResponse

None.

Response Formats

application/json, text/json

Sample:
{
  "bustime-response": {
    "locale": [
      {
        "localestring": "sample string 1",
        "displayname": "sample string 2"
      },
      {
        "localestring": "sample string 1",
        "displayname": "sample string 2"
      }
    ],
    "error": [
      {},
      {}
    ]
  }
}

text/html

Sample:
{"bustime-response":{"locale":[{"localestring":"sample string 1","displayname":"sample string 2"},{"localestring":"sample string 1","displayname":"sample string 2"}],"error":[{},{}]}}

application/xml, text/xml

Sample:
<RequestResponseOfLocaleRequestResponseV_SDPij9I xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ACTransit.Transit.Domain.Models">
  <Response>
    <Error xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:anyType />
      <d3p1:anyType />
    </Error>
    <Locales>
      <LocaleRequestResponse.Locale>
        <Displayname>sample string 2</Displayname>
        <Localestring>sample string 1</Localestring>
      </LocaleRequestResponse.Locale>
      <LocaleRequestResponse.Locale>
        <Displayname>sample string 2</Displayname>
        <Localestring>sample string 1</Localestring>
      </LocaleRequestResponse.Locale>
    </Locales>
  </Response>
</RequestResponseOfLocaleRequestResponseV_SDPij9I>