API Search : ch.swisstopo-vd.ortschaftenverzeichnis_plz Lowercase

19 views
Skip to first unread message

John-David Deubl

unread,
May 18, 2026, 11:55:18 AM (8 days ago) May 18
to GeoAdminCh API
Hello,

For a web form, I’d like to retrieve the ZIP code and location, which works so far. However, in the `key: detail` field, the place names are in lowercase. Is there a parameter in the query that returns the place names in the “correct” format—in this case, 2502 Biel/Bienne ?


I couldn’t find anything about this in the documentation. Thanks for reading.


Best regards


Request:
https://api3.geo.admin.ch/rest/services/api/SearchServer?features=ch.swisstopo-vd.ortschaftenverzeichnis_plz&type=featuresearch&searchText=2502

Result:

results: [
{
attrs: {
detail: "2502 biel/bienne",
featureId: "1428",
feature_id: "1428",
geom_quadindex: "02103",
geom_st_box2d: "BOX(583719.6198324268 220091.3495902172,587014.4520041236 224073.13084328157)",
label: "2502",
lat: 47.149532318115234,
layer: "ch.swisstopo-vd.ortschaftenverzeichnis_plz",
lon: 7.253011703491211,
origin: "feature"
},
id: 1428,
weight: 10009
}
]
}
Reply all
Reply to author
Forward
0 new messages