Ogadiv
Enviado: 01 fev 2017, 23:07
O presidente da mobie afirmou que o lançamento do novo site seria em novembro. Falta saber o ano
Fórum de discussão sobre a Mobilidade Elétrica e Parceiro privilegiado da Associação de Utilizadores de Veículos Elétricos - UVE
https://www.clubeletricos.com/
Olhando para a página http://www.mobie.pt/portal/postoscarregamento, os postos são carregados por JSON. Eu não sou programador android, mas creio não ser muito complicado fazer interface com o webservice.HugoCunha Escreveu:Se eles disponibilizassem uma API, em poucas semanas estavam aí algumas apps sem eles terem que se chatear.mjr Escreveu:Falei com responsáveis da Mobie, no dia da inauguração do PCR de Guimarães. E foi reforçado que as apps são muito importantes porque na estrada é o que dá mais jeito usar. Infelizmente o desenvolvimento das apps parece estar mais atrasado, falaram em alguns meses. Espero que consigam acelerar o processo.
Código: Selecionar todos
POST /mobie/portal/getchargingstationlist/json HTTP/1.1
Accept: */*
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Host: osb.mobinteli.com
Origin: http://www.mobie.pt
Referer: http://www.mobie.pt/portal/postoscarregamento
Content-Length: 46
Código: Selecionar todos
HTTP/1.1 200 OK
Date: Thu, 02 Feb 2017 12:18:53 GMT
Server: Apache/2.4.6 () OpenSSL/1.0.1e-fips PHP/5.4.16
X-ORACLE-DMS-ECID: fa298dac-c1a5-497b-b449-1b46fddc2497-0034a380
Access-Control-Allow-Origin: http://www.mobie.pt
Transfer-Encoding: chunked
Content-Type: text/plain; charset=utf-8
Código: Selecionar todos
{"GetChargingStationList_data":{"ChargingStationList":[{"Type":"Normal","Latitude":"38.67221","Longitude":"-9.15604","ChargingStationCode":"ALM-00023","Distance":"-1","Standalone":null,"LocalDenialList":null,"Manufacturer":"EFACEC","Model":"Efapower EV C1","Bookable":"No","Operator":"EDPMOP","ChargingStationId":"ALM-00023","Status":"Available","AvailableSattelites":"1","TotalSattelites":"2","ChargingStationAddress":{"Street":"Avenida Antonio Jose Gomes","Number":"-","PostalCode":"2805-086","City":"Almada","Country":"PT"}},{"Type":"Normal","Latitude":"38.6545","Longitude":"-9.16793","ChargingStationCode":"ALM-00026","Distance":"-1","Standalone":null,"LocalDenialList":null,"Manufacturer":"EFACEC","Model":"Efapower EV C1","Bookable":"No","Operator":"EDPMOP","ChargingStationId":"ALM-00026","Status":"Available","AvailableSattelites":"0","TotalSattelites":"2","ChargingStationAddress":{"Street":"Rua Joaquim Pires Jorge","Number":"7","PostalCode":"2810-083","City":"Almada","Country":"PT"}},{"Type":"Normal","Latitude":"40.442825","Longitude":"-8.434475","ChargingStationCode":"AND-00001","Distance":"-1","Standalone":null,"LocalDenialList":null,"Manufacturer":"MAGNUM CAP","Model":"MCR32","Bookable":"No","Operator":"PRIOE","ChargingStationId":"AND-00001","Status":"Available","AvailableSattelites":"2","TotalSattelites":"2","ChargingStationAddress":{"Street":"Avenida das Laranjeiras","Number":"151","PostalCode":"3780-202","City":"Anadia","Country":"PT"}},{"Type":"Normal","Latitude":"41.80488","Longitude":"-6.757647","ChargingStationCode":"BGC-00002","Distance":"-1","Standalone":null,"LocalDenialList":null,"Manufacturer":"EFACEC","Model":"Efapower EV C1","Bookable":"No","Operator":"EDPMOP","ChargingStationId":"BGC-00002","Status":"Unavailable","AvailableSattelites":"0","TotalSattelites":"2","ChargingStationAddress":{"Street":"Jardim António José de Almeida","Number":"-","PostalCode":"5300-130","City":"Bragança","Country":"PT"}},{"Type":"Normal","Latitude":"38.0108611","Longitude":"-7.87453333","ChargingStationCode":"BJA-00004","Distance":"-1","Standalone":null,"LocalDenialList":null,"Manufacturer":"EFACEC","Model":"Efapower EV C1","Bookable":"No","Operator":"EDPMOP","ChargingStationId":"BJA-00004","Status":"Available","AvailableSattelites":"1","TotalSattelites":"2","ChargingStationAddress":{"Street":"Rua 1º de Maio","Number":"-","PostalCode":"7800-510","City":"Beja","Country":"PT"}},{"Type":"Normal","Latitude":"41.567457","Longitude":"-8.397494","ChargingStationCode":"BRG-00014","Distance":"-1","Standalone":null,"LocalDenialList":null,"Manufacturer":"EFACEC","Model":"Efapower EV C1","Bookable":"No","Operator":"EDPMOP","ChargingStationId":"BRG-00014","Status":"Available","AvailableSattelites":"2","TotalSattelites":"2","ChargingStationAddress":{"Street":"Rua Quinta da Armada","Number":"-","PostalCode":"4710-340","City":"Braga","Country":"PT"}},{"Type":"Normal","Latitude":"39.8231073","Longitude":"-7.4921474","ChargingStationCode":"CBC-00001","Distance":"-1","Standalone":null,"LocalDenialList":null,"Manufacturer":"EFACEC","Model":"Efapower EV C1","Bookable":"No","Operator":"EDPMOP","ChargingStationId":"CBC-00001","Status":"Available","AvailableSattelites":"2","TotalSattelites":"2","ChargingStationAddress":{"Street":"Praça do Município","Number":"-","PostalCode":"6000-458","City":"Castelo Branco","Country":"PT"}},{"Type":"Normal","Latitude":"40.2078139","Longitude":"-8.42336111","ChargingStationCode":"CBR-00003","Distance":"-1","Standalone":null,"LocalDenialList":null,"Manufacturer":"EFACEC","Model":"Efapower EV C1","Bookable":"No","Operator":"EDPMOP","ChargingStationId":"CBR-00003","Status":"Unavailable","AvailableSattelites":"0","TotalSattelites":"4","ChargingStationAddress":{"Street":"Praça Dom Dinis","Number":"-","PostalCode":"3000-143","City":"Coimbra","Country":"PT"}},{"Type":"Normal","Latitude":"40.217627423","Longitude":"-8.43872222","ChargingStationCode":"CBR-00006","Distance":"-1","Standalone":null,"LocalDenialList":null,"Manufacturer":"EFACEC","Model":"Efapower EV C1","Bookable":"No","Operator":"EDPMOP","ChargingStationId":"CBR-00006","Status":"Available","AvailableSattelites":"3","TotalSattelites":"4","ChargingStationAddress":{"Street":"Casa do Sal","Number":"-","PostalCode":"3000-473","City":"Coimbra","Country":"PT"}}
etc, etc,
Também já estive a ver o site deles. A partir do ficheiro JSON é possível retirar toda a informação.sosimple Escreveu:Olhando para a página http://www.mobie.pt/portal/postoscarregamento, os postos são carregados por JSON. Eu não sou programador android, mas creio não ser muito complicado fazer interface com o webservice.HugoCunha Escreveu:Se eles disponibilizassem uma API, em poucas semanas estavam aí algumas apps sem eles terem que se chatear.mjr Escreveu:Falei com responsáveis da Mobie, no dia da inauguração do PCR de Guimarães. E foi reforçado que as apps são muito importantes porque na estrada é o que dá mais jeito usar. Infelizmente o desenvolvimento das apps parece estar mais atrasado, falaram em alguns meses. Espero que consigam acelerar o processo.
Por exemplo.
Request HeadersE recebemos isto:Código: Selecionar todos
POST /mobie/portal/getchargingstationlist/json HTTP/1.1 Accept: */* Content-Type: application/x-www-form-urlencoded; charset=UTF-8 Host: osb.mobinteli.com Origin: http://www.mobie.pt Referer: http://www.mobie.pt/portal/postoscarregamento Content-Length: 46
Response HeadersResponse Body:Código: Selecionar todos
HTTP/1.1 200 OK Date: Thu, 02 Feb 2017 12:18:53 GMT Server: Apache/2.4.6 () OpenSSL/1.0.1e-fips PHP/5.4.16 X-ORACLE-DMS-ECID: fa298dac-c1a5-497b-b449-1b46fddc2497-0034a380 Access-Control-Allow-Origin: http://www.mobie.pt Transfer-Encoding: chunked Content-Type: text/plain; charset=utf-8
Algum voluntário?Código: Selecionar todos
{"GetChargingStationList_data":{"ChargingStationList":[{"Type":"Normal","Latitude":"38.67221","Longitude":"-9.15604","ChargingStationCode":"ALM-00023","Distance":"-1","Standalone":null,"LocalDenialList":null,"Manufacturer":"EFACEC","Model":"Efapower EV C1","Bookable":"No","Operator":"EDPMOP","ChargingStationId":"ALM-00023","Status":"Available","AvailableSattelites":"1","TotalSattelites":"2","ChargingStationAddress":{"Street":"Avenida Antonio Jose Gomes","Number":"-","PostalCode":"2805-086","City":"Almada","Country":"PT"}},{"Type":"Normal","Latitude":"38.6545","Longitude":"-9.16793","ChargingStationCode":"ALM-00026","Distance":"-1","Standalone":null,"LocalDenialList":null,"Manufacturer":"EFACEC","Model":"Efapower EV C1","Bookable":"No","Operator":"EDPMOP","ChargingStationId":"ALM-00026","Status":"Available","AvailableSattelites":"0","TotalSattelites":"2","ChargingStationAddress":{"Street":"Rua Joaquim Pires Jorge","Number":"7","PostalCode":"2810-083","City":"Almada","Country":"PT"}},{"Type":"Normal","Latitude":"40.442825","Longitude":"-8.434475","ChargingStationCode":"AND-00001","Distance":"-1","Standalone":null,"LocalDenialList":null,"Manufacturer":"MAGNUM CAP","Model":"MCR32","Bookable":"No","Operator":"PRIOE","ChargingStationId":"AND-00001","Status":"Available","AvailableSattelites":"2","TotalSattelites":"2","ChargingStationAddress":{"Street":"Avenida das Laranjeiras","Number":"151","PostalCode":"3780-202","City":"Anadia","Country":"PT"}},{"Type":"Normal","Latitude":"41.80488","Longitude":"-6.757647","ChargingStationCode":"BGC-00002","Distance":"-1","Standalone":null,"LocalDenialList":null,"Manufacturer":"EFACEC","Model":"Efapower EV C1","Bookable":"No","Operator":"EDPMOP","ChargingStationId":"BGC-00002","Status":"Unavailable","AvailableSattelites":"0","TotalSattelites":"2","ChargingStationAddress":{"Street":"Jardim António José de Almeida","Number":"-","PostalCode":"5300-130","City":"Bragança","Country":"PT"}},{"Type":"Normal","Latitude":"38.0108611","Longitude":"-7.87453333","ChargingStationCode":"BJA-00004","Distance":"-1","Standalone":null,"LocalDenialList":null,"Manufacturer":"EFACEC","Model":"Efapower EV C1","Bookable":"No","Operator":"EDPMOP","ChargingStationId":"BJA-00004","Status":"Available","AvailableSattelites":"1","TotalSattelites":"2","ChargingStationAddress":{"Street":"Rua 1º de Maio","Number":"-","PostalCode":"7800-510","City":"Beja","Country":"PT"}},{"Type":"Normal","Latitude":"41.567457","Longitude":"-8.397494","ChargingStationCode":"BRG-00014","Distance":"-1","Standalone":null,"LocalDenialList":null,"Manufacturer":"EFACEC","Model":"Efapower EV C1","Bookable":"No","Operator":"EDPMOP","ChargingStationId":"BRG-00014","Status":"Available","AvailableSattelites":"2","TotalSattelites":"2","ChargingStationAddress":{"Street":"Rua Quinta da Armada","Number":"-","PostalCode":"4710-340","City":"Braga","Country":"PT"}},{"Type":"Normal","Latitude":"39.8231073","Longitude":"-7.4921474","ChargingStationCode":"CBC-00001","Distance":"-1","Standalone":null,"LocalDenialList":null,"Manufacturer":"EFACEC","Model":"Efapower EV C1","Bookable":"No","Operator":"EDPMOP","ChargingStationId":"CBC-00001","Status":"Available","AvailableSattelites":"2","TotalSattelites":"2","ChargingStationAddress":{"Street":"Praça do Município","Number":"-","PostalCode":"6000-458","City":"Castelo Branco","Country":"PT"}},{"Type":"Normal","Latitude":"40.2078139","Longitude":"-8.42336111","ChargingStationCode":"CBR-00003","Distance":"-1","Standalone":null,"LocalDenialList":null,"Manufacturer":"EFACEC","Model":"Efapower EV C1","Bookable":"No","Operator":"EDPMOP","ChargingStationId":"CBR-00003","Status":"Unavailable","AvailableSattelites":"0","TotalSattelites":"4","ChargingStationAddress":{"Street":"Praça Dom Dinis","Number":"-","PostalCode":"3000-143","City":"Coimbra","Country":"PT"}},{"Type":"Normal","Latitude":"40.217627423","Longitude":"-8.43872222","ChargingStationCode":"CBR-00006","Distance":"-1","Standalone":null,"LocalDenialList":null,"Manufacturer":"EFACEC","Model":"Efapower EV C1","Bookable":"No","Operator":"EDPMOP","ChargingStationId":"CBR-00006","Status":"Available","AvailableSattelites":"3","TotalSattelites":"4","ChargingStationAddress":{"Street":"Casa do Sal","Number":"-","PostalCode":"3000-473","City":"Coimbra","Country":"PT"}} etc, etc,
Excelente de qualquer forma, esse flop é inevitável, quando só existe uma fonte, que essa sim é um verdadeiro flop!renateves Escreveu:Boa tarde
Eu tenho uma app, ou uma espécie disso, que estou a tentar desenvolver com algumas opções em mente. No entanto, por falta de tempo não avancei.
O desenvolvimento desta app foi a necessidade através de um telemóvel avaliar o estado dos postos. No entanto já verifiquei que está longe de ser verídico e muitos postos tem informações erradas.
Por exemplo, o AVR-00001 é referido que está disponível mas está fora de serviço há mais de 2 semanas. Outro aqui bem perto diz "Desconhecido" mas está funcional.
Esta app, que chamei, "MobieChecker" seria um flop... mas no total foram umas horas de divertimento no desenvolvimento. Muito básica mas funcional