K
K
Kappy2019-01-30 18:18:44
JavaScript
Kappy, 2019-01-30 18:18:44

How to get airport code for yandex api?

There is a yandex schedule api that says:

https://api.rasp.yandex.net/v3.0/schedule/ ?apikey=<key>& station=<station code>

Actually airport codes according to ICAO IATA standards, even they have it written.
For example, a request for Domodedovo Airport - aka DME
https://api.rasp.yandex.net/v3.0/schedule/ ?
  apikey=<ключ>
& station=DME</blockquote>

In response: not the correct station code.
Tell me please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
wagoodoogoo, 2019-01-31
@wagoodooogoo

Returns carrier code another request:
https://api.rasp.yandex.net/v3.0/carrier/ ?
apikey=<key>
& code=DME
[& format=<format>]
[& lang=<language>]
& system=iata
https://api.rasp.yandex.net/v3.0/schedule/ ?
apikey=<key>
& station=DME
& system=iata

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question