Geo Auto Completion
The GeoAutoCompletion (GAC) provides autocompletion and suggestions for the German and Austrian geohierarchy as well as for postcodes and streets.
GET /gis/v2.0/geoautocomplete/{DEU|AUT}...
Notes:
- We offer two resources: suggestion and entity
Suggestion resource
Request
Path parameters
Parameter | Value |
---|---|
country | DEU, AUT |
Query parameters
Parameter | Description | Default value |
---|---|---|
i | Input for matching geographical entities (mandatory) | |
l | Limit the number of results (max: 120) | 50 |
t | Comma-separated list of entity types (see below) that should be considered.
For backward compatibility reasons this parameter is optional (defaulting to value country,region,city,district,quarterOrTown,postcodeWithQuarter), but it's strongly recommended to specify a value in order to be explicit (and you probably also don't want type postcodeWithQuarter, see comment below). |
t= | example | description |
---|---|---|
All | A shortcut for "country,region,city,district,quarterOrTown,postcode,street" (please note: The parameter "trainStation" is not included). | |
country |
Deutschland Österreich |
country |
region |
Brandenburg Steiermark |
The federal states according to our Geohierarchy |
city |
Potsdam Salzburg (Stadt) |
City (according to our Geohierarchy) |
district |
Potsdam-Mittelmark (Kreis) Salzburg-Umgebung |
County / rural district (according to our Geohierarchy) |
quarterOrTown |
Potsdam - Golm Rathenow Salzburg (Stadt) - Aigen Goldegg |
Boroughs in cities or small towns/villages in counties |
quarter |
Lühsdorf (Treuenbrietzen) Salzburg (Bergheim) |
Quarters within boroughs or towns/municipalities (including smaller villages) in the format "quarter (parent)" (or "city - quarter" for quarters within boroughs) |
postcode |
14467 Potsdam 5020 Salzburg |
Postal localities in the format "postcode locality" (as also used for postal addresses) |
postcodeWithQuarter |
14467 Potsdam - Berliner Vorstadt 5020 Salzburg (Stadt) - Aigen |
Combinations of postcode and quarterOrTown (search term must be a number)
Note that this type is useful only in very special cases as the combination of postcode with quarterOrTown doesn't usually reflect actual addresses that users might expect, in other words it's almost always better to use type postcode instead. |
street |
Am Neuen Palais, 14469 Potsdam - Potsdam West Albert-Schweitzer-Straße, 5020 Salzburg - Salzburg - Süd |
Street sections as "street, postcode city" or "street, postcode city - quarter" (depending on whether the street section belongs to a specific quarter) |
trainStation |
S Griebnitzsee (Potsdam) Potsdam Hauptbahnhof |
Trainstations (only in Germany) |
Examples
GET https://rest.immobilienscout24.de/restapi/api/gis/v2.0/geoautocomplete/DEU?i=10557%20Strasse%20des&t=street
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|
GET http://rest.immobilienscout24.de/restapi/api/gis/v2.0/geoautocomplete/AUT?i=Salzburg&t=city,district
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
|
Entity resource
Request
Path parameters
Parameter | Description |
---|---|
country | DEU or AUT |
id | The ID of the entity (as given in the suggestion result) |
1 |
|
Query parameters
Parameter | Default value | Description |
---|---|---|
g | None | GeoCodingType, One of:
|
Example request and response
GET http://rest.immobilienscout24.de/restapi/api/gis/v2.0/geoautocomplete/DEU/entity/1276007004
1 2 3 4 5 6 7 8 9 |
|
GET https://rest.immobilienscout24.de/restapi/api/gis/v2.0/geoautocomplete/DEU/entity/1276003001?g=GeoId
1 2 3 4 5 6 7 8 9 10 |
|
GET https://rest.immobilienscout24.de/restapi/api/gis/v2.0/geoautocomplete/DEU/entity/S1190910?g=Lambert
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
GET https://rest.immobilienscout24.de/restapi/api/gis/v2.0/geoautocomplete/DEU/entity/S1190910?g=WGS84
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|