Negalein said in Skripten des E-Control Spritpreisrechners:
Schick mir mal die Ausgabe vom API-Link im Browser.
das ist ja kein Problem, den hab ich schon im Parser:
[{"id":33596,"name":"AVIA ","location":{"address":"Keltenstraße 2","postalCode":"3100","city":"St. Pölten-Ratzersdorf","latitude":48.2279934,"longitude":15.6768304},"contact":{"telephone":"43274224668","fax":"43274224677","mail":"avia@marchhart.com","website":"http://www.peugeot-marchhart.at"},"openingHours":[{"day":"MO","label":"Montag","order":1,"from":"05:00","to":"22:00"},{"day":"DI","label":"Dienstag","order":2,"from":"05:00","to":"22:00"},{"day":"MI","label":"Mittwoch","order":3,"from":"05:00","to":"22:00"},{"day":"DO","label":"Donnerstag","order":4,"from":"05:00","to":"22:00"},{"day":"FR","label":"Freitag","order":5,"from":"05:00","to":"22:00"},{"day":"SA","label":"Samstag","order":6,"from":"06:00","to":"22:00"},{"day":"SO","label":"Sonntag","order":7,"from":"07:00","to":"21:00"},{"day":"FE","label":"Feiertag","order":8,"from":"07:00","to":"21:00"}],"offerInformation":{"service":false,"selfService":true,"unattended":false},"paymentMethods":{"cash":true,"debitCard":true,"creditCard":true,"others":"AVIAmat-Tankkarte"},"paymentArrangements":{"cooperative":false,"clubCard":false},"otherServiceOffers":"Portalwaschanlage, SB-Waschbox, SB-Sauger, LKW-tauglich, LKW-Hochleistungssäule, CNG/Erdgas, AdBlue, Shop, Bistro, Kundentelefon, Vignettenverkauf, Internet-Terminal","position":1,"open":true,"distance":4.388640888551343,"prices":[{"fuelType":"SUP","amount":1.072,"label":"Super 95"}]},{"id":109233,"name":"JOBA-Diskont Tanken","location":{"address":"Hauptstrasse 48","postalCode":"3140","city":"Pottenbrunn","latitude":48.234907,"longitude":15.6905083},"contact":{"telephone":"43274242522","fax":"43274242516","mail":"tankstelle.bichler@aon.at"},"openingHours":[{"day":"MO","label":"Montag","order":1,"from":"06:00","to":"21:00"},{"day":"DI","label":"Dienstag","order":2,"from":"06:00","to":"21:00"},{"day":"MI","label":"Mittwoch","order":3,"from":"06:00","to":"21:00"},{"day":"DO","label":"Donnerstag","order":4,"from":"06:00","to":"21:00"},{"day":"FR","label":"Freitag","order":5,"from":"06:00","to":"21:00"},{"day":"SA","label":"Samstag","order":6,"from":"07:00","to":"20:00"},{"day":"SO","label":"Sonntag","order":7,"from":"07:00","to":"20:00"},{"day":"FE","label":"Feiertag","order":8,"from":"07:00","to":"20:00"}],"offerInformation":{"service":false,"selfService":true,"unattended":false},"paymentMethods":{"cash":true,"debitCard":true,"creditCard":true},"paymentArrangements":{"cooperative":false,"clubCard":false},"otherServiceOffers":"Tankstelle,Gasthaus,,Lotto,Blumengeschäft,Postpartner,Shop,Werkstätte,Zimmer.\r\nWir betanken auch gerne(falls gewünscht)Ihr Fahrzeug!","position":2,"open":true,"distance":4.590168849388595,"prices":[{"fuelType":"SUP","amount":1.073,"label":"Super 95"}]},{"id":33627,"name":"AVIA mit Bedienung","location":{"postalCode":"3071","city":"Fahrafeld 15","latitude":48.146059,"longitude":15.749009},"contact":{"telephone":"4327445619","fax":"4327445619","mail":"office@eigl.at"},"openingHours":[{"day":"MO","label":"Montag","order":1,"from":"07:00","to":"18:00"},{"day":"DI","label":"Dienstag","order":2,"from":"07:00","to":"18:00"},{"day":"MI","label":"Mittwoch","order":3,"from":"07:00","to":"18:00"},{"day":"DO","label":"Donnerstag","order":4,"from":"07:00","to":"18:00"},{"day":"FR","label":"Freitag","order":5,"from":"07:00","to":"18:00"},{"day":"SA","label":"Samstag","order":6,"from":"07:00","to":"13:00"},{"day":"SO","label":"Sonntag","order":7,"from":"07:00","to":"20:00"},{"day":"FE","label":"Feiertag","order":8,"from":"07:00","to":"20:00"}],"offerInformation":{"service":true,"selfService":false,"unattended":false},"paymentMethods":{"cash":true,"debitCard":false,"creditCard":false},"paymentArrangements":{"cooperative":false,"clubCard":false},"otherServiceOffers":"Kaufhaus","position":3,"open":false,"distance":6.225483712914487,"prices":[{"fuelType":"SUP","amount":1.079,"label":"Super 95"}]},{"id":6219,"name":"Genol - Raiffeisenlagerhaus St. Pölten","location":{"address":"Obere Hauptstrasse 41","postalCode":"3071","city":"Böheimkirchen","latitude":48.198248,"longitude":15.753644},"contact":{"telephone":"4327432224","fax":"432743222475","mail":"energie@stpoelten.rlh.at","website":"http://www.lagerhaus-stpoelten.at"},"openingHours":[{"day":"MO","label":"Montag","order":1,"from":"00:00","to":"24:00"},{"day":"DI","label":"Dienstag","order":2,"from":"00:00","to":"24:00"},{"day":"MI","label":"Mittwoch","order":3,"from":"00:00","to":"24:00"},{"day":"DO","label":"Donnerstag","order":4,"from":"00:00","to":"24:00"},{"day":"FR","label":"Freitag","order":5,"from":"00:00","to":"24:00"},{"day":"SA","label":"Samstag","order":6,"from":"00:00","to":"24:00"},{"day":"SO","label":"Sonntag","order":7,"from":"00:00","to":"24:00"},{"day":"FE","label":"Feiertag","order":8,"from":"00:00","to":"24:00"}],"offerInformation":{"service":false,"selfService":false,"unattended":true},"paymentMethods":{"cash":false,"debitCard":true,"creditCard":true,"others":"Kundenkarte"},"paymentArrangements":{"cooperative":false,"clubCard":false},"otherServiceOffers":"Kundenkarte holen und Geld sparen.\r\nTanken Sie von 00.00 bis 24.00 Uhr mit Bankomat, Kreditkarte und Kundenkarte.","position":4,"open":true,"distance":3.114868916867809,"prices":[{"fuelType":"SUP","amount":1.084,"label":"Super 95"}]},{"id":1354797,"name":"avanti - Sankt Pölten Wiener Straße 92","location":{"address":"Wiener Strasse 92","postalCode":"3100","city":"Sankt Poelten","latitude":48.20673,"longitude":15.64125},"contact":{"telephone":"800202055","fax":"800","website":"www.omv.com"},"openingHours":[{"day":"MO","label":"Montag","order":1,"from":"06:00","to":"22:00"},{"day":"DI","label":"Dienstag","order":2,"from":"06:00","to":"22:00"},{"day":"MI","label":"Mittwoch","order":3,"from":"06:00","to":"22:00"},{"day":"DO","label":"Donnerstag","order":4,"from":"06:00","to":"22:00"},{"day":"FR","label":"Freitag","order":5,"from":"06:00","to":"22:00"},{"day":"SA","label":"Samstag","order":6,"from":"06:00","to":"22:00"},{"day":"SO","label":"Sonntag","order":7,"from":"07:00","to":"21:00"},{"day":"FE","label":"Feiertag","order":8,"from":"07:00","to":"21:00"}],"offerInformation":{"service":false,"selfService":true,"unattended":true},"paymentMethods":{"cash":false,"debitCard":true,"creditCard":true,"others":"OMV STATIONSKARTE, DKV, MASTERCARD, MAESTRO, ROUTEX, DINERS, VISA"},"paymentArrangements":{"cooperative":false,"clubCard":false},"position":5,"open":true,"distance":5.363257419264544,"prices":[{"fuelType":"SUP","amount":1.084,"label":"Super 95"}]},{"id":4089,"name":"Tankstopp","location":{"address":"Hauptstraße 8","postalCode":"3143","city":"Pyhra","latitude":48.1590154,"longitude":15.6848005},"contact":{"telephone":"43274583083","fax":"43274583084","mail":"office@tankstopp.at","website":"http://www.tankstopp.at"},"openingHours":[{"day":"MO","label":"Montag","order":1,"from":"06:00","to":"22:00"},{"day":"DI","label":"Dienstag","order":2,"from":"06:00","to":"22:00"},{"day":"MI","label":"Mittwoch","order":3,"from":"06:00","to":"22:00"},{"day":"DO","label":"Donnerstag","order":4,"from":"06:00","to":"22:00"},{"day":"FR","label":"Freitag","order":5,"from":"06:00","to":"22:00"},{"day":"SA","label":"Samstag","order":6,"from":"06:00","to":"22:00"},{"day":"SO","label":"Sonntag","order":7,"from":"07:00","to":"19:00"},{"day":"FE","label":"Feiertag","order":8,"from":"07:00","to":"19:00"}],"offerInformation":{"service":false,"selfService":true,"unattended":false},"paymentMethods":{"cash":true,"debitCard":true,"creditCard":true,"others":"Tankkarte"},"paymentArrangements":{"cooperative":false,"clubCard":false},"otherServiceOffers":"Stammkundenkartenrabatt 1Cent/Liter","position":6,"open":true,"distance":4.595653008197485,"prices":[]},{"id":247881,"name":"eni","location":{"address":"Wiener Strasse 66","postalCode":"3100","city":"St. Pölten","latitude":48.203264,"longitude":15.637852},"contact":{"telephone":"02742258633","fax":"027422586334"},"openingHours":[{"day":"MO","label":"Montag","order":1,"from":"05:00","to":"23:00"},{"day":"DI","label":"Dienstag","order":2,"from":"05:00","to":"23:00"},{"day":"MI","label":"Mittwoch","order":3,"from":"05:00","to":"23:00"},{"day":"DO","label":"Donnerstag","order":4,"from":"05:00","to":"23:00"},{"day":"FR","label":"Freitag","order":5,"from":"05:00","to":"23:00"},{"day":"SA","label":"Samstag","order":6,"from":"05:00","to":"23:00"},{"day":"SO","label":"Sonntag","order":7,"from":"05:00","to":"23:00"},{"day":"FE","label":"Feiertag","order":8,"from":"05:00","to":"23:00"}],"offerInformation":{"service":false,"selfService":true,"unattended":false},"paymentMethods":{"cash":true,"debitCard":true,"creditCard":true,"others":"AMEX,Maestro,Diners Club,DKV,GUTS,LOGP,MasterCard,Routex,UTA,VISA"},"paymentArrangements":{"cooperative":false,"clubCard":false},"position":7,"open":true,"distance":5.541807776579032,"prices":[]},{"id":35664,"name":"BP","location":{"address":"Hainfelderstr. ","postalCode":"3071","city":"Boeheimkirchen","latitude":48.194014,"longitude":15.765381},"contact":{"telephone":"4327433265","fax":"432743231220","mail":"tremmel.transporte@aon.at"},"openingHours":[{"day":"MO","label":"Montag","order":1,"from":"06:00","to":"20:30"},{"day":"DI","label":"Dienstag","order":2,"from":"06:00","to":"20:30"},{"day":"MI","label":"Mittwoch","order":3,"from":"06:00","to":"20:30"},{"day":"DO","label":"Donnerstag","order":4,"from":"06:00","to":"20:30"},{"day":"FR","label":"Freitag","order":5,"from":"06:00","to":"20:30"},{"day":"SA","label":"Samstag","order":6,"from":"06:00","to":"20:30"},{"day":"SO","label":"Sonntag","order":7,"from":"07:00","to":"20:30"},{"day":"FE","label":"Feiertag","order":8,"from":"07:00","to":"20:30"}],"offerInformation":{"service":false,"selfService":true,"unattended":false},"paymentMethods":{"cash":true,"debitCard":true,"creditCard":true,"others":"Routex"},"paymentArrangements":{"cooperative":false,"clubCard":false},"otherServiceOffers":"Autowash, SB-Wash","position":8,"open":false,"distance":3.984712299523193,"prices":[]},{"id":35766,"name":"BP","location":{"address":"Niederoesterreichring 20 ","postalCode":"3100","city":"St. Poelten","latitude":48.1979429,"longitude":15.6397468},"contact":{"telephone":"432742230033","mail":"R52571@bprosi.at"},"openingHours":[{"day":"MO","label":"Montag","order":1,"from":"05:00","to":"24:00"},{"day":"DI","label":"Dienstag","order":2,"from":"05:00","to":"24:00"},{"day":"MI","label":"Mittwoch","order":3,"from":"05:00","to":"24:00"},{"day":"DO","label":"Donnerstag","order":4,"from":"05:00","to":"24:00"},{"day":"FR","label":"Freitag","order":5,"from":"05:00","to":"24:00"},{"day":"SA","label":"Samstag","order":6,"from":"05:00","to":"24:00"},{"day":"SO","label":"Sonntag","order":7,"from":"05:00","to":"24:00"},{"day":"FE","label":"Feiertag","order":8,"from":"05:00","to":"24:00"}],"offerInformation":{"service":false,"selfService":true,"unattended":false},"paymentMethods":{"cash":true,"debitCard":true,"creditCard":true,"others":"Routex"},"paymentArrangements":{"cooperative":false,"clubCard":false},"otherServiceOffers":"Waschstrasse, Wild Bean Cafe, Staubsauger","position":9,"open":true,"distance":5.348706403529263,"prices":[]},{"id":248033,"name":"eni","location":{"address":"S 33","postalCode":"3100","city":"St. Pölten","latitude":48.19600961,"longitude":15.66120386},"contact":{"telephone":"02742230070","fax":"0274223007021"},"openingHours":[{"day":"MO","label":"Montag","order":1,"from":"04:00","to":"23:00"},{"day":"DI","label":"Dienstag","order":2,"from":"04:00","to":"22:00"},{"day":"MI","label":"Mittwoch","order":3,"from":"04:00","to":"23:00"},{"day":"DO","label":"Donnerstag","order":4,"from":"04:00","to":"23:00"},{"day":"FR","label":"Freitag","order":5,"from":"04:00","to":"23:00"},{"day":"SA","label":"Samstag","order":6,"from":"04:00","to":"23:00"},{"day":"SO","label":"Sonntag","order":7,"from":"04:00","to":"23:00"},{"day":"FE","label":"Feiertag","order":8,"from":"04:00","to":"23:00"}],"offerInformation":{"service":false,"selfService":true,"unattended":false},"paymentMethods":{"cash":true,"debitCard":true,"creditCard":true,"others":"AMEX,Maestro,Diners Club,DKV,GUTS,LOGP,MasterCard,Routex,UTA,VISA"},"paymentArrangements":{"cooperative":false,"clubCard":false},"position":10,"open":true,"distance":3.7530527119611987,"prices":[]}]
Aber nochmals zum Adapter, das scheint nicht so schwer zu sein, bzw. vll könnte ich wenn auftreiben, der darüber gerne ein TuT machen würde und somit v0.1 erstellen könnte.
Den Rest können ja dann die schlauen Köpfe hier übernehmen.