Glodenox / wme-quick-hn-importer

Userscript to quickly import house numbers based on open databases of known house numbers
GNU General Public License v2.0
0 stars 0 forks source link

Support for Croatia #9

Open fmis13 opened 11 months ago

fmis13 commented 11 months ago

Hi, I have found a couple of goverment sources for Croatia that may include house numbers. Getting credentials for them is free, but account creation is requred.

Would a implementation of some source below be possible? This would really help out Croatia's waze map.

See: https://geoportal.nipp.hr/geonetwork/srv/hrv/catalog.search#/metadata/d3104048-688a-4305-9471-77288cc6e350

http://geoportal.dgu.hr/services/inspire/wms_ad/wms?request=GetCapabilities&service=WMS&authKey=12345 https://geoportal.dgu.hr/services/sla/inspire/wfs_ad/wfs?request=GetCapabilities&service=WFS&authKey=12345 https://geoportal.dgu.hr/services/atom/xml?authkey=12345 https://geoportal.dgu.hr/services/atom/xml

You can get a authentification key for free at geoportal.dgu.hr, going into the top right corner, click "Prijava" (Login), and then click Registracija.

Thank you in advance, fmis13

Glodenox commented 10 months ago

Thanks for this information!

Having to deal with accounts would make it all a lot more complicated. I'm planning to move away from maintaining a database with house numbers for this script and instead going directly to the source, which is only going to make it more difficult. Maybe I could add a proxy that allows for requests coming from the WME that takes care of the authentication key.

fmis13 commented 10 months ago

Hmm, would it be possible for a user to add a auth key by himself? The only place you'd need to plug in your auth key is at the end of the link. Example: http://geoportal.dgu.hr/services/inspire/wms_ad/wms?request=GetCapabilities&service=WMS&authKey=***yourauthkey***

fmis13 commented 10 months ago

There is also the following link, but I am not sure how all this works. As far as I see the following link may be even easier to add. https://geoportal.dgu.hr/services/atom/xml edit: Hmm, that doesn't show some valuable information. But it reveals something similar from the European Union: https://inspire.ec.europa.eu/featureconcept/Address https://inspire.ec.europa.eu/featureconcept/Address/Address.hr.json http://inspire.ec.europa.eu/featureconcept/Address/Address.hr.atom

fmis13 commented 10 months ago

Found this .zip file which seemingly contains all HNs: https://geoportal.dgu.hr/services/atom/INSPIRE_Addresses_(AD).zip Gotten from this: https://geoportal.dgu.hr/services/atom/ad/xml