Closed (fixed)
Project:
Webform Address Autocomplete
Version:
1.0.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Nov 2025 at 12:33 UTC
Updated:
1 Dec 2025 at 09:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
olivierg commentedSee the patch for Swiss Post issue.
Comment #3
olivierg commentedComment #4
mably commentedHi @olivierg, thanks for your patch.
Could you create a merge request please?
Comment #6
olivierg commentedHi @mably,
The merge request was created.
Comment #7
mably commentedHi @olivierg, is there any test account available I could use to test the new code?
Didn't succeed to get one on the Post CH website:
Thanks for your help.
Comment #8
olivierg commentedHi @mably,
I worked for a customer who gave me access to use the api.
I don't think my client will share you these access.
As you can see in the merge request, I mainly changed keys of data that didn't match to the api.
You can see keys in the autocomple documentation here -> https://developer.post.ch/en/address-web-services-rest
You can search "/autocomplete4" in the page to find the correct section.
An example of the service describ in this section report this structure :
{
"request": {
"ONRP": 0,
"ZipCode": "817",
"ZipAddition": "",
"TownName": "n",
"STRID": 0,
"StreetName": "",
"HouseKey": 0,
"HouseNo": "",
"HouseNoAddition": ""
},
"zipOrderMode":0,
"zipFilterMode":0
}
There was Upercase errors and other bad keys like "HouseNo".
I can send you a print screen of the autocomplete on monday if you need.
Anyway, your implementation of Swiss Post api doesn't work, you lose nothing to use mine...
Comment #10
mably commentedIt's merged! Thanks for all @olivierg.
Comment #11
mably commented@olivierg can you confirm that it works fine for you so I can publish a new release?
Thanks.
Comment #12
mably commentedComment #14
olivierg commentedHi @mably,
I can confirm it works.
You can see a print screen of the autocomplete with Swiss addresses...
Comment #15
olivierg commentedAnd another one print screen here
Comment #17
mably commentedThanks @olivierg, it's released!