Skip to content

Commit

Permalink
Completed all the actions left. (getRouteName, getStopNameAndXY, getS…
Browse files Browse the repository at this point in the history
…chedLines)
  • Loading branch information
gph03n1x committed Jul 14, 2016
1 parent d6ef0b0 commit a6b1d62
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 1 deletion.
18 changes: 18 additions & 0 deletions docs/source/getRouteName.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,20 @@
getRouteName
============

Χρησιμοποιώντας το **routecode** το getRouteName επιστρέφει
το όνομα της διαδρομής.

**Api Endpoint:**

``http://telematics.oasa.gr/api/?act=getRouteName&p1=routecode``

**Response:**

.. code-block:: python
[
{
"route_descr":"\u03a0\u0395\u0399\u03a1\u0391\u0399\u0391\u03a3 - \u0392\u039f\u03a5\u039b\u0391",
"route_departure_eng":"PEIRAIAS - VOULA"
}
]
16 changes: 16 additions & 0 deletions docs/source/getSchedLines.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
getSchedLines
=============

Υποθέτω ότι δεν έχει υλοποιηθεί ακόμα.
Χρειαζόμαστε **mlcode** , **sdcCode**, **lineCode** τα οποία μπορούμε να τα βρούμε από το
webGetLinesWithML.

**Api Endpoint:**

``http://telematics.oasa.gr/api/?act=getSchedLines&p1=mlCode&p2=sdcCode&p3=lineCode``

**Response:**

``για http://telematics.oasa.gr/api/?act=getSchedLines&p1=9&p2=86&p3=815``

.. code-block:: python
{"come":[],"go":[]}
24 changes: 24 additions & 0 deletions docs/source/getStopNameAndXY.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,26 @@
getStopNameAndXY
================

Επιστρέφει το όνομα της στάσης και τις συντεταγμένες της.
Χρειαζόμαστε και μια παράμετρο που είναι το *stopcode* δηλαδή ο κώδικας μιας στάσης.
Για να τον βρούμε μπορούμε να χρησιμοποιήσουμε την webGetStops.
Στο παράδειγμα εμφανίζονται τα απότελέσματα του getStopArrivals της στάσης ΗΣΑΠ Ν.ΦΑΛΗΡΟΥ (stopcode=400075)

**Api Endpoint:**

``http://telematics.oasa.gr/api/?act=getStopNameAndXY&p1=stopcode``

**Response:**

.. code-block:: python
[
{
"stop_descr":"\u0397\u03a3\u0391\u03a0 \u039d.\u03a6\u0391\u039b\u0397\u03a1\u039f\u03a5",
"stop_descr_matrix_eng":"ISAP.N.FALIROY",
"stop_lat":"37.9445913",
"stop_lng":"23.6671421"
"stop_heading":"88",
"stop_id":"400075"
}
]
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Welcome to OASA Telematics API's documentation!
The api has the following form ::
http://telematics.oasa.gr/api/?act=action&p1=parameter1&p2=parameter2

Μέσα από το `script`_ το οποίο χρησιμοποιούν στο http://telematics.oasa.gr/
Μέσα από το `script`_ (Script v0.1.1) το οποίο χρησιμοποιούν στο http://telematics.oasa.gr/
τα requests που έχω τεκμηριώσει ως τώρα είναι **POST** requests τα οποία περνάνε
τις παραμέτρους στο url .

Expand Down

0 comments on commit a6b1d62

Please sign in to comment.