Advertisement
Guest User

Untitled

a guest
Dec 11th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1.  
  2. curl -i -X POST \
  3. https://api-mmp-prod.onelya.ru/v1/get-oneway-multi-modal-routes-stream \
  4. -H 'Content-Type: application/json' \
  5. -H 'Authorization: Bearer 1241c86bfca138f457387810dc877e3b7aeb513c1df31cdf206483d795e35f40' \
  6. -d '{
  7. "max_results": 100,
  8. "min_trips_in_leg": 2,
  9. "max_trips_in_leg": 4,
  10. "system_params": {
  11. "search_via_ar": "SVA_SEARCH_BUT_NOT_RETURN",
  12. "search_via_graph": "SVG_SEARCH_WITH_DETAIL",
  13. "detailed_location": true,
  14. "debug": false
  15. },
  16. "start_location": {
  17. "city": {
  18. "key": "5a13bd41340c745ca1e88b55",
  19. "name_ru": "Казань"
  20. },
  21. "type": "city"
  22. },
  23. "finish_location": {
  24. "city": {
  25. "key": "5a26e4cb340c743fc5608b70",
  26. "name_ru": "Лондон"
  27. },
  28. "type": "city"
  29. },
  30. "start_datetime_range": {
  31. "from": "2018-12-11T21:00:00.000Z",
  32. "to": "2018-12-12T20:59:59.000Z"
  33. },
  34. "filters": [
  35. {
  36. "param_name": "route.provider.key",
  37. "exact_filter": {
  38. "param_values": [
  39. "b2brails",
  40. "aeroexpress",
  41. "b2bbus",
  42. "b2bavia"
  43. ]
  44. }
  45. }
  46. ]
  47. }'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement