Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Source Request]: Abfallwirtschaft Heidekreis #1965

Open
ppabst opened this issue Apr 11, 2024 · 1 comment
Open

[Source Request]: Abfallwirtschaft Heidekreis #1965

ppabst opened this issue Apr 11, 2024 · 1 comment
Labels
source request Request to add a new source

Comments

@ppabst
Copy link

ppabst commented Apr 11, 2024

Municipality / Region

Heidekreis, Germany

Collection Calendar Webpage

https://www.ahk-heidekreis.de/fuer-privatkunden/abfuhrzeiten.html

Example Address

Up de Linnen 101, 29614 Soltau, Germany

Collection Data Format

As ICS/ICAL file

Additional Information

No response

@ppabst ppabst added the source request Request to add a new source label Apr 11, 2024
@ReneNulschDE
Copy link
Contributor

Analysis:

  1. Final Step to get ICAL
    POST : https://ahkwebapi.heidekreis.de/api/object/40592/QDisposalScheduler/asIcal
    Request BODY
{"von":"2024-04-19T22:00:00.000Z","bis":"2025-04-19T00:00:00.000Z","benachrichtigungVorJederAbholung":false,"abholbenachrichtigungTageVorher":1,"abholbenachrichtigungUhrzeit":{"ticks":28800000,"sekunden":28800,"minuten":480,"stunden":8},"benachrichtigungNächsterKalender":false,"kalenderBenachrichtigungTageVorEnde":3,"kalenderbenachrichtigungUhrzeit":{"ticks":28800000,"sekunden":28800,"minuten":480,"stunden":8}}

To get the object id:

First API Request:
https://ahkwebapi.heidekreis.de/api/QMasterData/QStreetByPartialName?PartialName=a (No special headers)

Returns a JSON array:

[
    {
        "id": 126739,
        "name": "Am Ahlersteich",
        "place": "Walsrode",
        "plz": "29664",
        "zip": {
            "id": 5596,
            "zip": "29664",
            "place": "Walsrode",
            "district": ""
        }
    },
    {
        "id": 159954,
        "name": "Am Allermoor",
        "place": "Bispingen",
        "plz": "29646",
        "zip": {
            "id": 682,
            "zip": "29646",
            "place": "Bispingen",
            "district": ""
        }
    },
]

Next:
House Numbers
https://ahkwebapi.heidekreis.de/api/QMasterData/QHouseNr?StreetID=159954
Retruns:

[
    {
        "houseNr": 2,
        "houseNrAdd": "",
        "idObject": 40592
    },
    {
        "houseNr": 4,
        "houseNrAdd": "",
        "idObject": 40593
    }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
source request Request to add a new source
Projects
None yet
Development

No branches or pull requests

2 participants