-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Completed all the actions left. (getRouteName, getStopNameAndXY, getS…
…chedLines)
- Loading branch information
Showing
4 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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":[]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters