Metro station API

Возвращает ближайшую станцию русского метро к координатам. Можно использовать как справочник.

JSON Documentation

Method: getMetro

https://json.smappi.org/milash/metro-station/getMetro?name=<string>&city=<string>&line_id=<string>&line_name=<string>

Returns information about subway station

getMetro("Бульвар Рокоссовского","","","")
  // => {"geo_lat":"55.814264","geo_lon":"37.735117","line_id":"01","line_name":"\u0421\u043e\u043a\u043e\u043b\u044c\u043d\u0438\u0447\u0435\u0441\u043a\u0430\u044f","city":"\u041c\u043e\u0441\u043a\u0432\u0430","name":"\u0411\u0443\u043b\u044c\u0432\u0430\u0440 \u0420\u043e\u043a\u043e\u0441\u0441\u043e\u0432\u0441\u043a\u043e\u0433\u043e"}

Live Example

Request:
https://json.smappi.org/milash/metro-station/getMetro?name=example&city=example&line_id=example&line_name=example
Response:
Internal Server Error

Method: getClosest

https://json.smappi.org/milash/metro-station/getClosest?city=<string>&lat=<string>&lon=<string>

getClosest("Москва", "55.814264", "37.735117")
  // => {"line_id":"01","line_name":"Сокольническая","city":"Москва","name":"Бульвар Рокоссовского","geo_lat":"55.814264","geo_lon":"37.735117"}

Live Example

Request:
https://json.smappi.org/milash/metro-station/getClosest?city=example&lat=example&lon=example
Response:
Internal Server Error

XML Documentation

Method: getMetro

https://xml.smappi.org/milash/metro-station/getMetro?name=<string>&city=<string>&line_id=<string>&line_name=<string>

Returns information about subway station

getMetro("Бульвар Рокоссовского","","","")
  // => {"geo_lat":"55.814264","geo_lon":"37.735117","line_id":"01","line_name":"\u0421\u043e\u043a\u043e\u043b\u044c\u043d\u0438\u0447\u0435\u0441\u043a\u0430\u044f","city":"\u041c\u043e\u0441\u043a\u0432\u0430","name":"\u0411\u0443\u043b\u044c\u0432\u0430\u0440 \u0420\u043e\u043a\u043e\u0441\u0441\u043e\u0432\u0441\u043a\u043e\u0433\u043e"}

Live Example

Request:
https://xml.smappi.org/milash/metro-station/getMetro?name=example&city=example&line_id=example&line_name=example
Response:
Internal Server Error

Method: getClosest

https://xml.smappi.org/milash/metro-station/getClosest?city=<string>&lat=<string>&lon=<string>

getClosest("Москва", "55.814264", "37.735117")
  // => {"line_id":"01","line_name":"Сокольническая","city":"Москва","name":"Бульвар Рокоссовского","geo_lat":"55.814264","geo_lon":"37.735117"}

Live Example

Request:
https://xml.smappi.org/milash/metro-station/getClosest?city=example&lat=example&lon=example
Response:
Internal Server Error

SOAP Documentation (coming soon)

WSDL-Scheme here...

Method: getMetro

https://soap.smappi.org/milash/metro-station/getMetro?name=<string>&city=<string>&line_id=<string>&line_name=<string>

Returns information about subway station

getMetro("Бульвар Рокоссовского","","","")
  // => {"geo_lat":"55.814264","geo_lon":"37.735117","line_id":"01","line_name":"\u0421\u043e\u043a\u043e\u043b\u044c\u043d\u0438\u0447\u0435\u0441\u043a\u0430\u044f","city":"\u041c\u043e\u0441\u043a\u0432\u0430","name":"\u0411\u0443\u043b\u044c\u0432\u0430\u0440 \u0420\u043e\u043a\u043e\u0441\u0441\u043e\u0432\u0441\u043a\u043e\u0433\u043e"}

Live Example

Request:
https://soap.smappi.org/milash/metro-station/getMetro?name=example&city=example&line_id=example&line_name=example
Response:
Internal Server Error

Method: getClosest

https://soap.smappi.org/milash/metro-station/getClosest?city=<string>&lat=<string>&lon=<string>

getClosest("Москва", "55.814264", "37.735117")
  // => {"line_id":"01","line_name":"Сокольническая","city":"Москва","name":"Бульвар Рокоссовского","geo_lat":"55.814264","geo_lon":"37.735117"}

Live Example

Request:
https://soap.smappi.org/milash/metro-station/getClosest?city=example&lat=example&lon=example
Response:
Internal Server Error
[A]
author

Versions

  • master