Skip to content

Commit

Permalink
Added getClosestStops
Browse files Browse the repository at this point in the history
  • Loading branch information
gph03n1x committed May 16, 2017
1 parent 3be978a commit b51bc50
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/source/getClosestStops.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
getClosestStops
===============

Χρησιμοποιώντας το **x** και το **y** το getClosestStops επιστρέφει τις κοντινότερες στάσεις

**Api Endpoint:**

``http://telematics.oasa.gr/api/?act=getClosestStops&p1=x&p2=y``

**Response:**

.. code-block:: python
[
{
"StopCode":"400058","StopID":"400058","StopDescr":"\u0392\u0395\u039d\u0399\u0396\u0395\u039b\u039f\u03a5",
"StopDescrEng":"VENIZELOY","StopStreet":"\u0393\u03a1.\u039b\u0391\u039c\u03a0\u03a1\u0391\u039a\u0397",
"StopStreetEng":null,"StopHeading":"42","StopLat":"37.9432677","StopLng":"23.6520113",
"distance":"0.001443313361679744"
},
{
"StopCode":"400036","StopID":"400036","StopDescr":"\u0392\u0395\u039d\u0399\u0396\u0395\u039b\u039f\u03a5",
"StopDescrEng":"VENIZELOY","StopStreet":"\u0393\u03a1.\u039b\u0391\u039c\u03a0\u03a1\u0391\u039a\u0397",
"StopStreetEng":null,"StopHeading":"42","StopLat":"37.9433851","StopLng":"23.6521018",
"distance":"0.001541670123601801"
},
...
]
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@ The api has the following form ::
getRouteName
getStopNameAndXY
getSchedLines
getClosestStops

.. _script: http://telematics.oasa.gr/js/script.js

0 comments on commit b51bc50

Please sign in to comment.