TinyBoxDev / androclick-server

0 stars 0 forks source link

Service Analysis #1

Closed helloIAmPau closed 2 years ago

helloIAmPau commented 9 years ago

We need to explore the new ANM APIs. The service we used in the last version extracts the information by parsing the HTML page. This is bad because:

1) the HTML page can change invalidating the parsing operations; 2) the parsing operation takes too much time; 3) the request is accepted only if a captcha is verified.

helloIAmPau commented 9 years ago

ANM APIs

ANM_REQ_ANOMALIE = "http://m.anm.it/srv/ServiceInfoAnmLinee.asmx/RilevaAnomalieLinea?linea=";
ANM_REQ_COMUNI = "http://m.anm.it/srv/ServiceInfoAnmLinee.asmx/CaricaElencoComuni";
ANM_REQ_FERMATA = "http://m.anm.it/srv/ServiceInfoAnmLinee.asmx/RilevaEsistenzaFermata?fermata=";
ANM_REQ_PERCORSO = "http://m.anm.it/srv/ServiceInfoAnmLinee.asmx/CaricaPercorsoLinea?linea=";
ANM_REQ_POSIZIONE_BUS = "http://m.anm.it/srv/ServiceInfoAnmLinee.asmx/CaricaPosizioneVeicolo?linea=";
ANM_REQ_PREVISIONI = "http://m.anm.it/srv/ServiceInfoAnmLinee.asmx/CaricaPrevisioni?Palina=";
ANM_REQ_SEARCH_BY_STREET = "http://m.anm.it/srv/ServiceInfoAnmLinee.asmx/CaricaFermateStrada?strada=";
ANM_REQ_TRANSITANO = "http://m.anm.it/srv/ServiceInfoAnmLinee.asmx/CaricaTransiti?Palina=";
ANM_URL_BASE = "http://m.anm.it/srv/ServiceInfoAnmLinee.asmx/";
tag = "AnmServices";

CTP APIs

CTP_REQ_ANOMALIE = "http://inbus.provincia.napoli.it:8000/topGui/webservices/it.tsf/ws.ctp.php?";
CTP_REQ_COMUNI = "http://inbus.provincia.napoli.it:8000/topGuiCer/webservices/it.tsf/ws.ctp.php?COMUNE";
CTP_REQ_FERMATA = "http://inbus.provincia.napoli.it:8000/topGuiCer/webservices/it.tsf/ws.ctp.php?FERMATA=";
CTP_REQ_PERCORSO = "http://inbus.provincia.napoli.it:8000/topGuiCer/webservices/it.tsf/ws.ctp.php?PERCORSO=";
CTP_REQ_POSIZIONE_BUS = "http://inbus.provincia.napoli.it:8000/topGuiCer/webservices/it.tsf/ws.ctp.php?POS=";
CTP_REQ_PREVISIONI = "http://inbus.provincia.napoli.it:8000/topGuiCer/webservices/it.tsf/ws.ctp.php?PREV=";
CTP_REQ_SEARCH_BY_STREET = "http://inbus.provincia.napoli.it:8000/topGuiCer/webservices/it.tsf/ws.ctp.php?STRADA_CITTA=";
CTP_REQ_TRANSITANO = "http://inbus.provincia.napoli.it:8000/topGuiCer/webservices/it.tsf/ws.ctp.php?TRANSIT=";
CTP_URL_BASE = "http://inbus.provincia.napoli.it:8000/topGuiCer/webservices/it.tsf/ws.ctp.php";
TAG = "CTP";

LumiLabs APIs

LUMI_REQ_ANM_UPDATED_LINES = "http://www.lumilab.it/gn/anmupdatedlines";
LUMI_REQ_CHECK_APP_VERSION = "http://www.lumilab.it/gn/appinfo";
LUMI_REQ_COMPAGNIA_ANM = "&compagnia=0";
LUMI_REQ_COMPAGNIA_CTP = "&compagnia=1";
LUMI_REQ_PERCORSO = "http://www.lumilab.it/citybusnapoli/counter.php?PERCORSO=";
LUMI_REQ_PREVISIONI = "http://www.lumilab.it/citybusnapoli/counter.php?PREV=";
LUMI_URL_BASE = "http://www.lumilab.it/citybusnapoli/counter.php";