{"openapi":"3.0.3","info":{"title":"GPSearch","description":"GPSearch GeoPortal Place Search","version":"6.0.5"},"servers":[{"url":"https://www.geodaten-mv.de/geocoding-api/"}],"components":{"parameters":{"q":{"name":"q","in":"query","description":"Freetext query term","required":false,"schema":{"type":"string"},"example":"Schwerin"},"exact":{"name":"exact","in":"query","description":"Search using exact word match?","required":false,"schema":{"type":"boolean","default":false}},"phonetic":{"name":"phonetic","in":"query","description":"Search using phonetic match?","required":false,"schema":{"type":"boolean","default":false}},"type":{"name":"type","in":"query","description":"Place type(s) to return","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/placeType"},"minItems":1,"uniqueItems":true},"style":"form","explode":false,"example":"Landkreis,Amt,Gemeinde"},"crs":{"name":"crs","in":"query","description":"Coordinate reference system identifier for query and/or result","required":false,"schema":{"$ref":"#/components/schemas/crsName"},"example":"EPSG:25833"},"coord":{"name":"coord","in":"query","description":"Center coordinate for geometric filter of results: Requires rm","required":false,"schema":{"type":"array","items":{"type":"number","format":"double"},"minItems":2,"maxItems":2},"style":"form","explode":false,"example":"260000,5940000"},"rm":{"name":"rm","in":"query","description":"Radius (in metre) for geometric filter of results: Requires coord","required":false,"schema":{"type":"number","format":"double","minimum":0},"example":0},"bbox":{"name":"bbox","in":"query","description":"Bounding box for geometric filter of results","required":false,"schema":{"type":"array","items":{"type":"number","format":"double"},"minItems":4,"maxItems":4},"style":"form","explode":false,"example":"260000,5940000,270000,5950000"},"olc":{"name":"olc","in":"query","description":"Open Location Code (or initial part thereof), with optional prefix indicating filter type:\n\n- `~` for partial comparison of OLC (default mode if value is a valid OLC code stem)\n- `=` for exact comparison of full OLC (default mode if value is a valid full unprefixed OLC code)\n- `*` for places geometrically intersecting the full OLC\n- `<` for places geometrically within the full OLC\n- `>` for places geometrically containing the full OLC\n- `!` for places geometrically disjoint to the full OLC\n\nFor all modes other than partial comparison the value (without prefix) must be a valid full OpenLocationCode","required":false,"schema":{"$ref":"#/components/schemas/olcFilter"},"example":{"unprefixedStemFilter":{"summary":"Filter for places with a matching OpenLocationCode stem (default mode when value is not a full code)","value":"9F5H"},"unprefixedCodeFilter":{"summary":"Filter for places with an exact OpenLocationCode match (default mode when value is a full code)","value":"9F5H0000+"},"matchStemFilter":{"summary":"Filter for places with a matching OpenLocationCode stem","value":"~9F5H"},"exactCodeFilter":{"summary":"Filter for places with an exact OpenLocationCode match","value":"=9F5H0000+"},"intersectCodeQuery":{"summary":"Filter for places geometricrally intersecting an OpenLocationCode area","value":"*9F5HJCF9+RF"},"withinCodeQuery":{"summary":"Filter for places geometrically within an OpenLocationCode area","value":"<9F5H0000+"},"containsCodeQuery":{"summary":"Filter for places geometrically containing an OpenLocationCode area","value":">9F5HJCF9+RF"},"disjointCodeQuery":{"summary":"Filter for places geometrically disjoint with an OpenLocationCode area","value":"!9F5HJCF9+RF"}}},"n":{"name":"n","in":"query","description":"Maximum number of items to return","required":false,"schema":{"type":"integer","format":"int32","default":10,"minimum":1,"maximum":100}},"offset":{"name":"offset","in":"query","description":"Offset of first item to return","required":false,"schema":{"type":"integer","format":"int32","default":0}},"geom":{"name":"geom","in":"query","description":"Include full geometry (if available)?","required":false,"schema":{"type":"boolean","default":true},"example":false},"x_filter":{"name":"x_filter","in":"query","description":"Application-specific filter on x_*-fields of indexed objects","required":false,"schema":{"$ref":"#/components/schemas/xFilter"},"style":"deepObject","explode":true},"sort":{"name":"sort","in":"query","description":"Sorting of results","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/sortField"},"minItems":1,"uniqueItems":true}},"f":{"name":"f","in":"query","description":"Output format (overrides request Accept header)","required":false,"schema":{"type":"string","enum":["application/json","application/geo+json"],"default":"application/geo+json"}},"placeType":{"name":"placeType","in":"path","description":"Place type to return","required":true,"schema":{"$ref":"#/components/schemas/placeType"}},"placeId":{"name":"placeId","in":"path","description":"Unique place ID","required":true,"schema":{"$ref":"#/components/schemas/placeId"},"example":"6a0a78f58bcc66d76e0b58f74638970b"}},"schemas":{"placeId":{"description":"Unique place ID","type":"string","pattern":"^[0-9a-f]{32}$","example":"6a0a78f58bcc66d76e0b58f74638970b"},"placeName":{"description":"Place name","type":"string","example":"Schwerin, Landeshauptstadt"},"placeDescription":{"description":"Longer description of place","type":"string","example":"Schwerin Bereich Schweriner See"},"placeType":{"description":"Categorisation of place","type":"string","enum":["Kreisfrei","Landkreis","Amtsfrei","Amt","Gemeinde","GemeindeMitPostleitzahl","Ortsteil","OrtsteilMitPostleitzahl","Straße","Adresse","Gemarkung","Flur","Flurstück","Verkehrsstrasse","Strassenabschnitt","Forstamt","Forstrevier","Feldblock"]},"boundsCoord":{"description":"Geographic coordinate as x,y","type":"string","pattern":"^\\d+(?:\\.\\d+)?,\\d+(?:\\.\\d+)?$","example":"53.5443,11.296"},"sortField":{"description":"Definition of sort order for results; dist may only be used if coord is specified and is only sensible for point features (e.g. Adresse)","type":"string","pattern":"^(?:id|indexed|name|type|typecode|relevance|dist)(?:+|-| a(?:sc)?| d(esc)?)$","example":"typecode-, relevance DESC"},"xFilter":{"description":"Definition of custom filter based on structured x_-fields in result","type":"object","minProperties":2,"properties":{"regionalschluessel":{"$ref":"#/components/schemas/xFilter_regionalschluessel"},"landkreis":{"$ref":"#/components/schemas/xFilter_landkreis"},"landkreis_id":{"$ref":"#/components/schemas/xFilter_landkreis_id"},"amt":{"$ref":"#/components/schemas/xFilter_amt"},"amt_id":{"$ref":"#/components/schemas/xFilter_amt_id"},"amt_schluessel":{"$ref":"#/components/schemas/xFilter_amt_schluessel"},"gemeinde":{"$ref":"#/components/schemas/xFilter_gemeinde"},"gemeinde_id":{"$ref":"#/components/schemas/xFilter_gemeinde_id"},"gemeindeschluessel":{"$ref":"#/components/schemas/xFilter_gemeindeschluessel"},"bereich":{"$ref":"#/components/schemas/xFilter_bereich"},"plz":{"$ref":"#/components/schemas/xFilter_plz"},"strassenname":{"$ref":"#/components/schemas/xFilter_strassenname"},"strassenschluessel":{"$ref":"#/components/schemas/xFilter_strassenschluessel"},"strassenart":{"$ref":"#/components/schemas/xFilter_strassenart"},"strasse":{"$ref":"#/components/schemas/xFilter_strasse"},"strassennummer":{"$ref":"#/components/schemas/xFilter_strassennummer"},"abschnitt":{"$ref":"#/components/schemas/xFilter_abschnitt"},"von":{"$ref":"#/components/schemas/xFilter_von"},"bis":{"$ref":"#/components/schemas/xFilter_bis"},"hausnummer":{"$ref":"#/components/schemas/xFilter_hausnummer"},"katasterobjekt_id":{"$ref":"#/components/schemas/xFilter_katasterobjekt_id"},"gemarkungsname":{"$ref":"#/components/schemas/xFilter_gemarkungsname"},"gemarkung":{"$ref":"#/components/schemas/xFilter_gemarkung"},"flur":{"$ref":"#/components/schemas/xFilter_flur"},"flurstueck":{"$ref":"#/components/schemas/xFilter_flurstueck"},"zaehler":{"$ref":"#/components/schemas/xFilter_zaehler"},"nenner":{"$ref":"#/components/schemas/xFilter_nenner"},"forstamt":{"$ref":"#/components/schemas/xFilter_forstamt"},"forstamt_id":{"$ref":"#/components/schemas/xFilter_forstamt_id"},"forstrevier":{"$ref":"#/components/schemas/xFilter_forstrevier"},"forstrevier_id":{"$ref":"#/components/schemas/xFilter_forstrevier_id"},"feldblock":{"$ref":"#/components/schemas/xFilter_feldblock"},"bodennutzung":{"$ref":"#/components/schemas/xFilter_bodennutzung"},"erosion_wind":{"$ref":"#/components/schemas/xFilter_erosion_wind"},"erosion_wasser":{"$ref":"#/components/schemas/xFilter_erosion_wasser"},"erosion_wind_cc":{"$ref":"#/components/schemas/xFilter_erosion_wind_cc"},"erosion_wasser_cc":{"$ref":"#/components/schemas/xFilter_erosion_wasser_cc"}}},"xFilter_regionalschluessel":{"description":"12-digit regional key (Regionalschlüssel)","type":"string","pattern":"^\\d{12}$","example":"130715154001"},"xFilter_landkreis":{"description":"Name of county (Landkreis)","type":"string","example":"Mecklenburgische Seenplatte"},"xFilter_landkreis_id":{"description":"5-digit county (Landkreis) ID","type":"string","pattern":"^\\d{5}$","example":"13071"},"xFilter_amt":{"description":"Name of administrative district (Amt / Verwaltungsgemeinschaft)","type":"string","example":"Malchow"},"xFilter_amt_id":{"description":"4-digit administrative district (Amt / Verwaltungsgemeinschaft) ID","type":"string","pattern":"^\\d{4}$","example":5154},"xFilter_amt_schluessel":{"description":"9-digit administrative district (Amt / Verwaltungsgemeinschaft) key","type":"string","pattern":"^\\d{9}$","example":"130715154"},"xFilter_gemeinde":{"description":"Municipality (Gemeinde) name","type":"string","example":"Alt Schwerin"},"xFilter_gemeinde_id":{"description":"3-digit municipality (Gemeinde) ID","type":"string","pattern":"^\\d{3}$","example":"001"},"xFilter_gemeindeschluessel":{"description":"8-digit municipality (Gemeinde) key","type":"string","pattern":"^\\d{8}$","example":"13071001"},"xFilter_bereich":{"description":"District name","type":"string","example":"Schweriner See"},"xFilter_plz":{"description":"Postal code","type":"string","pattern":"^\\d{5}$","example":"19059"},"xFilter_strassenname":{"description":"Street name","type":"string","example":"Lübecker Str."},"xFilter_strassenschluessel":{"description":"13-digit street key","type":"string","pattern":"^\\d{13}$","example":"1300400000366"},"xFilter_strassenart":{"description":"Classification of street","type":"string","enum":["Bundesautobahn","Bundesstraße","Landesstraße","Kreisstraße","Gemeindestraße","Sonstiges"]},"xFilter_strasse":{"description":"Classified road name","type":"string","example":"B104"},"xFilter_strassennummer":{"description":"Classified road number","type":"integer","format":"int32","example":104},"xFilter_abschnitt":{"description":"Road segment ID","type":"string","example":"2130038O2131298O"},"xFilter_von":{"description":"Road segment start node ID","type":"string","example":"2130038O"},"xFilter_bis":{"description":"Road segment end node ID","type":"string","example":"2131298O"},"xFilter_hausnummer":{"description":"House number (including prefix/suffix if present)","type":"string","example":"289"},"xFilter_katasterobjekt_id":{"description":"Cadastral object key; 6-digit for district (Gemarkung), 9-digit for section (Flur) and 20 for parcel (Flurstück)","type":"string","pattern":"^\\d{6}(?:\\d{3}(?:\\d{5}[0-9_]{4}__)?)?$","example":"130757001000080001__"},"xFilter_gemarkungsname":{"description":"Name of cadastral district (Gemarkung)","type":"string","example":"Lankow"},"xFilter_gemarkung":{"description":"6-digit cadastral district (Gemarkung) ID","type":"string","pattern":"^\\d{6}$","example":"130757"},"xFilter_flur":{"description":"Cadastral section (Flur)","type":"integer","minimum":1,"maximum":999},"xFilter_flurstueck":{"description":"Cadastral parcel (Flurstück) number","type":"string","pattern":"^\\d{1,5}(?:/\\d{1,4})?$","example":"8/1"},"xFilter_zaehler":{"description":"Enumerator of cadastral parcel (Flurstück) number","type":"integer","minimum":1,"maximum":99999},"xFilter_nenner":{"description":"Denominator of cadastral parcel (Flurstück) number","type":"integer","minimum":1,"maximum":9999},"xFilter_forstamt":{"description":"Name of forestry region (Forstamt)","type":"string","example":"Güstrow"},"xFilter_forstamt_id":{"description":"2-digit ID of forestry region (Forstamt)","type":"string","pattern":"^\\d{2}$","example":"20"},"xFilter_forstrevier":{"description":"Name of forest district (Forstrevier)","type":"string","example":"Cammin"},"xFilter_forstrevier_id":{"description":"5-digit ID of forest district (Forstrevier)","type":"string","pattern":"^\\d{2}_\\d{2}$","example":"20_07"},"xFilter_feldblock":{"description":"Agricultural parcel (Feldblock)","type":"string","minLength":16,"maxLength":16,"example":"DEMVLI039DC30001"},"xFilter_bodennutzung":{"description":"Agricultural use of parcel (Feldblock)","type":"string","maxLength":3,"example":"DGL"},"xFilter_erosion_wind":{"description":"Classsified wind erosion risk of parcel (Feldblock)","type":"string","example":"Enat3"},"xFilter_erosion_wasser":{"description":"Classsified water erosion risk of parcel (Feldblock)","type":"string","example":"Enat1"},"xFilter_erosion_wind_cc":{"description":"Classsified wind erosion risk of parcel (Feldblock) according to cross-compliance","type":"string","example":"CC0"},"xFilter_erosion_wasser_cc":{"description":"Classsified water erosion risk of parcel (Feldblock) according to cross-compliance","type":"string","example":"CC2"},"x_Field":{"description":"Application- and type-specific classified information about the place, which may be used in the x_filter query parameter","type":"array","items":{"type":"string"},"minItems":1,"example":["Bundesstraße","Landesstraße"]},"olc":{"description":"OpenLocationCode","type":"string","pattern":"^[023456789CFGHJMPQRVWX]{8}\\+(?:[023456789CFGHJMPQRVWX]{2,})?$","example":"9F5HJCF9+RF"},"olcFilter":{"description":"Open Location Code (or initial part thereof), with optional prefix indicating filter type:\n\n- `~` for partial comparison of OLC (default mode if value is a valid OLC code stem)\n- `=` for exact comparison of full OLC (default mode if value is a valid full unprefixed OLC code)\n- `*` for places geometrically intersecting the full OLC\n- `<` for places geometrically within the full OLC\n- `>` for places geometrically containing the full OLC\n- `!` for places geometrically disjoint to the full OLC\n\nFor all modes other than partial comparison the value (without prefix) must be a valid full OpenLocationCode","type":"string","pattern":"^([~]?(0{1,7}|0{8}\\\\+?|[23456789CFGHJMPQRV](?:[23456789CFGHJMPQRV](?:0{1,5}|0{6}\\\\+?|[23456789CFGHJMPQRVX](?:[23456789CFGHJMPQRVX](?:0{1,3}|0{4}\\\\+?|[23456789CFGHJMPQRVX](?:[23456789CFGHJMPQRVX](?:0|0{2}\\\\+?|[23456789CFGHJMPQRVX](?:[23456789CFGHJMPQRVX](?:\\\\+(?:[23456789CFGHJMPQRVX])*)?)?)?)?)?)?)?)?)|[=<>\\*!](0{8}\\\\+|[23456789CFGHJMPQRV](?:[23456789CFGHJMPQRV](?:0{6}\\\\+|[23456789CFGHJMPQRVX](?:[23456789CFGHJMPQRVX](?:0{4}\\\\+|[23456789CFGHJMPQRVX](?:[23456789CFGHJMPQRVX](?:0{2}\\\\+|[23456789CFGHJMPQRVX](?:[23456789CFGHJMPQRVX](?:\\\\+(?:[23456789CFGHJMPQRVX])*)?)?)?)?)?)?)?)?))$","example":{"unprefixedStemFilter":{"summary":"Filter for places with a matching OpenLocationCode stem (default mode when value is not a full code)","value":"9F5H"},"unprefixedCodeFilter":{"summary":"Filter for places with an exact OpenLocationCode match (default mode when value is a full code)","value":"9F5H0000+"},"matchStemFilter":{"summary":"Filter for places with a matching OpenLocationCode stem","value":"~9F5H"},"exactCodeFilter":{"summary":"Filter for places with an exact OpenLocationCode match","value":"=9F5H0000+"},"intersectCodeQuery":{"summary":"Filter for places geometricrally intersecting an OpenLocationCode area","value":"*9F5HJCF9+RF"},"withinCodeQuery":{"summary":"Filter for places geometrically within an OpenLocationCode area","value":"<9F5H0000+"},"containsCodeQuery":{"summary":"Filter for places geometrically containing an OpenLocationCode area","value":">9F5HJCF9+RF"},"disjointCodeQuery":{"summary":"Filter for places geometrically disjoint with an OpenLocationCode area","value":"!9F5HJCF9+RF"}}},"errorResponse":{"description":"A response to an unsuccesful request","type":"object","properties":{"success":{"type":"boolean","enum":[false]},"message":{"type":"string"}},"required":["success","message"],"example":{"success":false,"message":"Something went wrong"}},"placeProperties":{"description":"Standard properties of a place in a response","type":"object","required":["_placeId","placeName","placeDescription","proj","projbounds_lower","projbounds_upper","geobounds_lower","geobounds_upper","primaryType","score"],"properties":{"_placeId":{"$ref":"#/components/schemas/placeId"},"placeName":{"$ref":"#/components/schemas/placeName"},"placeDescription":{"$ref":"#/components/schemas/placeDescription"},"proj":{"$ref":"#/components/schemas/crsName"},"projbounds_lower":{"$ref":"#/components/schemas/boundsCoord"},"projbounds_upper":{"$ref":"#/components/schemas/boundsCoord"},"geobounds_lower":{"$ref":"#/components/schemas/boundsCoord"},"geobounds_upper":{"$ref":"#/components/schemas/boundsCoord"},"primaryType":{"$ref":"#/components/schemas/placeType"},"score":{"type":"number"},"olc":{"$ref":"#/components/schemas/olc"},"geometry":{"$ref":"#/components/schemas/geometry"},"x_regionalschluessel":{"$ref":"#/components/schemas/x_Field"},"x_landkreis":{"$ref":"#/components/schemas/x_Field"},"x_landkreis_id":{"$ref":"#/components/schemas/x_Field"},"x_amt":{"$ref":"#/components/schemas/x_Field"},"x_amt_id":{"$ref":"#/components/schemas/x_Field"},"x_amt_schluessel":{"$ref":"#/components/schemas/x_Field"},"x_gemeinde":{"$ref":"#/components/schemas/x_Field"},"x_gemeinde_id":{"$ref":"#/components/schemas/x_Field"},"x_gemeindeschluessel":{"$ref":"#/components/schemas/x_Field"},"x_bereich":{"$ref":"#/components/schemas/x_Field"},"x_plz":{"$ref":"#/components/schemas/x_Field"},"x_strassenname":{"$ref":"#/components/schemas/x_Field"},"x_strassenschluessel":{"$ref":"#/components/schemas/x_Field"},"x_strassenart":{"$ref":"#/components/schemas/x_Field"},"x_strasse":{"$ref":"#/components/schemas/x_Field"},"x_strassennummer":{"$ref":"#/components/schemas/x_Field"},"x_abschnitt":{"$ref":"#/components/schemas/x_Field"},"x_von":{"$ref":"#/components/schemas/x_Field"},"x_bis":{"$ref":"#/components/schemas/x_Field"},"x_hausnummer":{"$ref":"#/components/schemas/x_Field"},"x_katasterobjekt_id":{"$ref":"#/components/schemas/x_Field"},"x_gemarkungsname":{"$ref":"#/components/schemas/x_Field"},"x_gemarkung":{"$ref":"#/components/schemas/x_Field"},"x_flur":{"$ref":"#/components/schemas/x_Field"},"x_flurstueck":{"$ref":"#/components/schemas/x_Field"},"x_zaehler":{"$ref":"#/components/schemas/x_Field"},"x_nenner":{"$ref":"#/components/schemas/x_Field"},"x_forstamt":{"$ref":"#/components/schemas/x_Field"},"x_forstamt_id":{"$ref":"#/components/schemas/x_Field"},"x_forstrevier":{"$ref":"#/components/schemas/x_Field"},"x_forstrevier_id":{"$ref":"#/components/schemas/x_Field"},"x_feldblock":{"$ref":"#/components/schemas/x_Field"},"x_bodennutzung":{"$ref":"#/components/schemas/x_Field"},"x_erosion_wind":{"$ref":"#/components/schemas/x_Field"},"x_erosion_wasser":{"$ref":"#/components/schemas/x_Field"},"x_erosion_wind_cc":{"$ref":"#/components/schemas/x_Field"},"x_erosion_wasser_cc":{"$ref":"#/components/schemas/x_Field"}},"additionalProperties":true,"example":{"_placeId":"6a0a78f58bcc66d76e0b58f74638970b","placeName":"Schwerin, Landeshauptstadt","placeDescription":"Schwerin, Landeshauptstadt","x_regionalschluessel":["130040000000"],"x_landkreis":["Schwerin, Landeshauptstadt"],"x_landkreis_id":["13004"],"x_amt":["Schwerin, Landeshauptstadt"],"x_amt_id":["0002"],"x_amt_schluessel":["130040002"],"x_gemeinde":["Schwerin, Landeshauptstadt"],"x_gemeinde_id":["000"],"x_gemeindeschluessel":["13004000"],"proj":"epsg:25832","projbounds_lower":"652830,5935015","projbounds_upper":"665011,5951886","geobounds_lower":"53.5443,11.296","geobounds_upper":"53.6874,11.5056","primaryType":"Kreisfrei","olc":"9F5H0000+","score":1}},"placeSummaryProperties":{"description":"Summary properties of a place in an autocomplete response","type":"object","properties":{"_placeId":{"$ref":"#/components/schemas/placeId"},"placeName":{"$ref":"#/components/schemas/placeName"},"placeDescription":{"$ref":"#/components/schemas/placeDescription"}},"required":["_placeId","placeName","placeDescription"],"additionalProperties":true,"example":{"_placeId":"6a0a78f58bcc66d76e0b58f74638970b","placeName":"Schwerin, Landeshauptstadt","placeDescription":"Schwerin, Landeshauptstadt"}},"bbox":{"description":"GeoJSON bounding box (minx,miny,maxx,maxy)","type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"example":[652830,5935015,714488,6015966]},"crsName":{"type":"string","pattern":"^(?:EPSG|epsg):\\d{4,5}$","example":"EPSG:25832"},"crs":{"description":"Coordinate reference system by name","type":"object","properties":{"type":{"type":"string","enum":["name"]},"properties":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/crsName"}},"required":["name"]}},"required":["type","properties"],"example":{"type":"name","properties":{"name":"epsg:25832"}}},"coordinate":{"description":"Geographic coordinate (2D)","type":"array","items":{"type":"number"},"minItems":2,"maxItems":2},"coordinateList":{"description":"Array of geographic coordinates","type":"array","items":{"$ref":"#/components/schemas/coordinate"},"minItems":2},"ring":{"description":"Closed ring of geographic coordinates with the first and last entries being identical","type":"array","items":{"$ref":"#/components/schemas/coordinate"},"minItems":4},"rings":{"description":"Array of closed rings, with the first entry being the outer ring and second and subsequent entries being interior holes","type":"array","items":{"$ref":"#/components/schemas/ring"},"minItems":1},"point":{"title":"GeoJSON Point","type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"$ref":"#/components/schemas/coordinate"},"crs":{"$ref":"#/components/schemas/crs"}},"required":["type","coordinates","crs"]},"linestring":{"title":"GeoJSON LineString","type":"object","properties":{"type":{"type":"string","enum":["LineString"]},"coordinates":{"$ref":"#/components/schemas/coordinateList"},"crs":{"$ref":"#/components/schemas/crs"}},"required":["type","coordinates","crs"]},"polygon":{"title":"GeoJSON Polygon","type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"$ref":"#/components/schemas/rings"},"crs":{"$ref":"#/components/schemas/crs"}},"required":["type","coordinates","crs"]},"multipoint":{"title":"GeoJSON MultiPoint","type":"object","properties":{"type":{"type":"string","enum":["MultiPoint"]},"coordinates":{"type":"array","items":{"$ref":"#/components/schemas/coordinate"},"minItems":1},"crs":{"$ref":"#/components/schemas/crs"}},"required":["type","coordinates","crs"]},"multilinestring":{"title":"GeoJSON MultiLineString","type":"object","properties":{"type":{"type":"string","enum":["MultiLineString"]},"coordinates":{"type":"array","items":{"$ref":"#/components/schemas/coordinateList"},"minItems":1},"crs":{"$ref":"#/components/schemas/crs"}},"required":["type","coordinates","crs"]},"multipolygon":{"title":"GeoJSON MultiPolygon","type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"$ref":"#/components/schemas/rings"},"minItems":1},"crs":{"$ref":"#/components/schemas/crs"}},"required":["type","coordinates","crs"]},"geometry":{"description":"GeoJSON geometry","oneOf":[{"$ref":"#/components/schemas/point"},{"$ref":"#/components/schemas/linestring"},{"$ref":"#/components/schemas/polygon"},{"$ref":"#/components/schemas/multipoint"},{"$ref":"#/components/schemas/multilinestring"},{"$ref":"#/components/schemas/multipolygon"}]},"feature":{"title":"GeoJSON Feature describing a place (full properties)","type":"object","properties":{"type":{"type":"string","enum":["Feature"]},"id":{"$ref":"#/components/schemas/placeId"},"bbox":{"$ref":"#/components/schemas/bbox"},"geometry":{"$ref":"#/components/schemas/geometry"},"properties":{"$ref":"#/components/schemas/placeProperties"}},"required":["type","id","geometry","properties"]},"summaryFeature":{"title":"GeoJSON Feature summarising a place (summary properties)","type":"object","properties":{"type":{"type":"string","enum":["Feature"]},"id":{"$ref":"#/components/schemas/placeId"},"bbox":{"$ref":"#/components/schemas/bbox"},"geometry":{"$ref":"#/components/schemas/polygon"},"properties":{"$ref":"#/components/schemas/placeSummaryProperties"}},"required":["type","id","geometry","properties"]},"singlewords":{"description":"Hit counts for individual words in a search term","type":"object","additionalProperties":{"type":"integer","minimum":1},"example":{"334":64316,"Lankow":12}},"autocompleteSuccessGeoJSONResponse":{"description":"GeoJSON FeatureCollection describing a successful place autocomplete","type":"object","properties":{"type":{"type":"string","enum":["FeatureCollection"]},"success":{"type":"boolean","enum":[true]},"features":{"type":"array","items":{"$ref":"#/components/schemas/summaryFeature"}},"bbox":{"$ref":"#/components/schemas/bbox"},"crs":{"$ref":"#/components/schemas/crs"}},"required":["type","success","features","bbox","crs"],"example":{"type":"FeatureCollection","features":[{"type":"Feature","id":"31ba5d23d69b001aa5eecaee35a717fc","bbox":[251699,5962075,257568,5969467],"geometry":{"type":"Polygon","coordinates":[[251699,5962075],[257568,5962075],[257568,5969467],[251699,5969467],[251699,5962075]],"crs":{"type":"name","properties":{"name":"EPSG:25833"}}},"properties":{"_placeId":"31ba5d23d69b001aa5eecaee35a717fc","placeName":"Testorf-Steinfort","placeDescription":"Testorf-Steinfort (Nordwestmecklenburg)","proj":"EPSG:25833","projbounds_lower":"251699,5962075","projbounds_upper":"257568,5969467"}}],"bbox":[251699,5962075,257568,5969467],"crs":{"type":"name","properties":{"name":"EPSG:25833"}},"success":true}},"autocompleteSuccessJsonResponse":{"description":"Simple JSON document describing a successful place autocomplete","type":"object","properties":{"success":{"type":"boolean","enum":[true]},"places":{"type":"array","items":{"$ref":"#/components/schemas/placeSummaryProperties"}}},"required":["success","places"],"example":{"success":true,"places":[{"_placeId":"31ba5d23d69b001aa5eecaee35a717fc","placeName":"Testorf-Steinfort","placeDescription":"Testorf-Steinfort (Nordwestmecklenburg)"}]}},"searchSuccessGeoJSONResponse":{"description":"GeoJSON FeatureCollection describing a successful place search","type":"object","properties":{"type":{"type":"string","enum":["FeatureCollection"]},"success":{"type":"boolean","enum":[true]},"features":{"type":"array","items":{"$ref":"#/components/schemas/feature"}},"bbox":{"$ref":"#/components/schemas/bbox"},"crs":{"$ref":"#/components/schemas/crs"},"singlewords":{"$ref":"#/components/schemas/singlewords"},"start":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0}},"required":["type","success","features","start","total"],"additionalProperties":true,"example":{"type":"FeatureCollection","features":[{"type":"Feature","id":"31ba5d23d69b001aa5eecaee35a717fc","bbox":[647302,5957806,652523,5965663],"geometry":{"type":"Polygon","coordinates":[[647302,5957806],[652523,5957806],[652523,5965663],[647302,5965663],[647302,5957806]],"crs":{"type":"name","properties":{"name":"epsg:25832"}}},"properties":{"_placeId":"31ba5d23d69b001aa5eecaee35a717fc","placeName":"Testorf-Steinfort","placeDescription":"Testorf-Steinfort (Nordwestmecklenburg)","x_regionalschluessel":["130745453077"],"x_landkreis":["Nordwestmecklenburg"],"x_amt":["Grevesmühlen-Land"],"x_gemeinde":["Testorf-Steinfort"],"x_landkreis_id":["13074"],"x_amt_id":["5453"],"x_amt_schluessel":["130745453"],"x_gemeinde_id":["077"],"x_gemeindeschluessel":["13074077"],"proj":"epsg:25832","projbounds_lower":"647302,5957806","projbounds_upper":"652523,5965663","geobounds_lower":"53.7499,11.2313","geobounds_upper":"53.8153,11.3215","primaryType":"Gemeinde","score":162.59288}}],"bbox":[647302,5957806,652523,5965663],"crs":{"type":"name","properties":{"name":"epsg:25832"}},"start":0,"total":16,"success":true}},"searchSuccessJsonResponse":{"description":"Simple JSON document describing a successful place search","type":"object","properties":{"success":{"type":"boolean","enum":[true]},"places":{"type":"array","items":{"$ref":"#/components/schemas/placeProperties"}},"singlewords":{"$ref":"#/components/schemas/singlewords"},"start":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0}},"required":["success","places","start","total"],"additionalProperties":true,"example":{"places":[{"_placeId":"31ba5d23d69b001aa5eecaee35a717fc","placeName":"Testorf-Steinfort","placeDescription":"Testorf-Steinfort (Nordwestmecklenburg)","x_regionalschluessel":["130745453077"],"x_landkreis":["Nordwestmecklenburg"],"x_amt":["Grevesmühlen-Land"],"x_gemeinde":["Testorf-Steinfort"],"x_landkreis_id":["13074"],"x_amt_id":["5453"],"x_amt_schluessel":["130745453"],"x_gemeinde_id":["077"],"x_gemeindeschluessel":["13074077"],"proj":"epsg:25832","projbounds_lower":"647302,5957806","projbounds_upper":"652523,5965663","geobounds_lower":"53.7499,11.2313","geobounds_upper":"53.8153,11.3215","primaryType":"Gemeinde","score":162.59288}],"start":0,"total":16,"success":true}},"placeSuccessGeoJSONResponse":{"description":"GeoJSON FeatureCollection describing a successful place-by-ID response","type":"object","properties":{"type":{"type":"string","enum":["FeatureCollection"]},"success":{"type":"boolean","enum":[true]},"features":{"type":"array","items":{"$ref":"#/components/schemas/feature"}},"bbox":{"$ref":"#/components/schemas/bbox"},"crs":{"$ref":"#/components/schemas/crs"}},"required":["type","success","features","bbox","crs"],"example":{"type":"FeatureCollection","features":[{"type":"Feature","id":"6a0a78f58bcc66d76e0b58f74638970b","bbox":[652830,5935015,665011,5951886],"geometry":{"type":"Polygon","coordinates":[[652830,5935015],[665011,5935015],[665011,5951886],[652830,5951886],[652830,5935015]],"crs":{"type":"name","properties":{"name":"epsg:25832"}}},"properties":{"_placeId":"6a0a78f58bcc66d76e0b58f74638970b","placeName":"Schwerin, Landeshauptstadt","placeDescription":"Schwerin, Landeshauptstadt","x_regionalschluessel":["130040000000"],"x_landkreis":["Schwerin, Landeshauptstadt"],"x_landkreis_id":["13004"],"x_amt":["Schwerin, Landeshauptstadt"],"x_amt_id":["0002"],"x_amt_schluessel":["130040002"],"x_gemeinde":["Schwerin, Landeshauptstadt"],"x_gemeinde_id":["000"],"x_gemeindeschluessel":["13004000"],"proj":"epsg:25832","projbounds_lower":"652830,5935015","projbounds_upper":"665011,5951886","geobounds_lower":"53.5443,11.296","geobounds_upper":"53.6874,11.5056","primaryType":"Kreisfrei","score":6.527961}}],"bbox":[652830,5935015,665011,5951886],"crs":{"type":"name","properties":{"name":"epsg:25832"}},"success":true}},"placeSuccessJsonResponse":{"description":"Simple JSON document describing a successful place-by-ID response","type":"object","properties":{"success":{"type":"boolean","enum":[true]},"place":{"$ref":"#/components/schemas/placeProperties"}},"required":["success","place"],"example":{"type":"FeatureCollection","features":[{"type":"Feature","id":"6a0a78f58bcc66d76e0b58f74638970b","bbox":[652830,5935015,665011,5951886],"geometry":{"type":"Polygon","coordinates":[[652830,5935015],[665011,5935015],[665011,5951886],[652830,5951886],[652830,5935015]],"crs":{"type":"name","properties":{"name":"epsg:25832"}}},"properties":{"_placeId":"6a0a78f58bcc66d76e0b58f74638970b","placeName":"Schwerin, Landeshauptstadt","placeDescription":"Schwerin, Landeshauptstadt","x_regionalschluessel":["130040000000"],"x_landkreis":["Schwerin, Landeshauptstadt"],"x_landkreis_id":["13004"],"x_amt":["Schwerin, Landeshauptstadt"],"x_amt_id":["0002"],"x_amt_schluessel":["130040002"],"x_gemeinde":["Schwerin, Landeshauptstadt"],"x_gemeinde_id":["000"],"x_gemeindeschluessel":["13004000"],"proj":"epsg:25832","projbounds_lower":"652830,5935015","projbounds_upper":"665011,5951886","geobounds_lower":"53.5443,11.296","geobounds_upper":"53.6874,11.5056","primaryType":"Kreisfrei","score":6.527961}}],"bbox":[652830,5935015,665011,5951886],"crs":{"type":"name","properties":{"name":"epsg:25832"}},"success":true}}},"responses":{"clientError":{"description":"Client Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorResponse"},"example":{"success":false,"message":"Maximum permissible number of results is 100"}}}},"serverError":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorResponse"},"example":{"success":false,"message":"Internal Server Error"}}}},"autocompleteSuccess":{"description":"Successful autocomplete","content":{"application/geo+json":{"schema":{"$ref":"#/components/schemas/autocompleteSuccessGeoJSONResponse"}},"application/json":{"schema":{"$ref":"#/components/schemas/autocompleteSuccessJsonResponse"}}}},"searchSuccess":{"description":"Successful search","content":{"application/geo+json":{"schema":{"$ref":"#/components/schemas/searchSuccessGeoJSONResponse"}},"application/json":{"schema":{"$ref":"#/components/schemas/searchSuccessJsonResponse"}}}},"placeSuccess":{"description":"Successful retrieval of place details","content":{"application/geo+json":{"schema":{"$ref":"#/components/schemas/placeSuccessGeoJSONResponse"}},"application/json":{"schema":{"$ref":"#/components/schemas/placeSuccessJsonResponse"}}}}}},"paths":{"/place/autocomplete":{"get":{"operationId":"autocompletePlace","summary":"Get completions for place name","parameters":[{"$ref":"#/components/parameters/q"},{"$ref":"#/components/parameters/type"},{"$ref":"#/components/parameters/crs"},{"$ref":"#/components/parameters/n"},{"$ref":"#/components/parameters/f"}],"responses":{"200":{"$ref":"#/components/responses/autocompleteSuccess"},"400":{"$ref":"#/components/responses/clientError"},"500":{"$ref":"#/components/responses/serverError"}}}},"/place/autocomplete/{placeType}":{"get":{"operationId":"autocompletePlaceType","summary":"Get completions for place name of given type","parameters":[{"$ref":"#/components/parameters/placeType"},{"$ref":"#/components/parameters/q"},{"$ref":"#/components/parameters/crs"},{"$ref":"#/components/parameters/n"},{"$ref":"#/components/parameters/f"}],"responses":{"200":{"$ref":"#/components/responses/autocompleteSuccess"},"400":{"$ref":"#/components/responses/clientError"},"500":{"$ref":"#/components/responses/serverError"}}}},"/place/search":{"get":{"operationId":"searchPlace","summary":"Search for places","parameters":[{"$ref":"#/components/parameters/q"},{"$ref":"#/components/parameters/exact"},{"$ref":"#/components/parameters/phonetic"},{"$ref":"#/components/parameters/type"},{"$ref":"#/components/parameters/crs"},{"$ref":"#/components/parameters/coord"},{"$ref":"#/components/parameters/rm"},{"$ref":"#/components/parameters/bbox"},{"$ref":"#/components/parameters/olc"},{"$ref":"#/components/parameters/x_filter"},{"$ref":"#/components/parameters/sort"},{"$ref":"#/components/parameters/offset"},{"$ref":"#/components/parameters/n"},{"$ref":"#/components/parameters/geom"},{"$ref":"#/components/parameters/f"}],"responses":{"200":{"$ref":"#/components/responses/searchSuccess"},"400":{"$ref":"#/components/responses/clientError"},"500":{"$ref":"#/components/responses/serverError"}}}},"/place/search/{placeType}":{"get":{"operationId":"searchPlaceType","summary":"Search for places of the given type","parameters":[{"$ref":"#/components/parameters/placeType"},{"$ref":"#/components/parameters/q"},{"$ref":"#/components/parameters/exact"},{"$ref":"#/components/parameters/phonetic"},{"$ref":"#/components/parameters/crs"},{"$ref":"#/components/parameters/coord"},{"$ref":"#/components/parameters/rm"},{"$ref":"#/components/parameters/bbox"},{"$ref":"#/components/parameters/olc"},{"$ref":"#/components/parameters/x_filter"},{"$ref":"#/components/parameters/sort"},{"$ref":"#/components/parameters/offset"},{"$ref":"#/components/parameters/n"},{"$ref":"#/components/parameters/geom"},{"$ref":"#/components/parameters/f"}],"responses":{"200":{"$ref":"#/components/responses/searchSuccess"},"400":{"$ref":"#/components/responses/clientError"},"500":{"$ref":"#/components/responses/serverError"}}}},"/place/id/{placeId}":{"get":{"operationId":"getPlaceById","summary":"Retrieve a single place by ID","parameters":[{"$ref":"#/components/parameters/placeId"},{"$ref":"#/components/parameters/crs"},{"$ref":"#/components/parameters/geom"},{"$ref":"#/components/parameters/f"}],"responses":{"200":{"$ref":"#/components/responses/placeSuccess"},"400":{"$ref":"#/components/responses/clientError"},"404":{"$ref":"#/components/responses/clientError"},"500":{"$ref":"#/components/responses/serverError"}}}}}}