GeocodingPlacesGeoJSON
QUERY
GeocodingPlacesGeoJSONAuthorization
AuthorizationBearer token · headerrequiredArguments
detailsFilterGeocodingPlacesGeoJSONItemsDetailsSearchFilterInputLiefert Details zu einem Ort aus einer vorherigen Abfrage (anhand der gid).
Sucht einen Ort anhand einer Adresse oder eines Namens.
langStringSprachcode der Ergebnisse nach BCP 47
reverseFilterGeocodingPlacesGeoJSONItemsReverseSearchFilterInputErmittelt, was sich an einer bestimmten Koordinate befindet (Reverse Geocoding).
structuredFilterGeocodingPlacesGeoJSONItemsSearchStructuredFilterInputSucht einen Ort anhand bereits aufgeteilter Adressbestandteile (Hausnummer, Straße, Ort usw.).
Returns
Ergebnis der Ortssuche als GeoJSON-FeatureCollection
Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST 'https://api.multibasecs.de/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"query": "query GeocodingPlacesGeoJSON($detailsFilter: GeocodingPlacesGeoJSONItemsDetailsSearchFilterInput, $filter: GeocodingPlacesGeoJSONItemsSearchFilterInput, $lang: String, $reverseFilter: GeocodingPlacesGeoJSONItemsReverseSearchFilterInput, $structuredFilter: GeocodingPlacesGeoJSONItemsSearchStructuredFilterInput) {\n GeocodingPlacesGeoJSON(detailsFilter: $detailsFilter, filter: $filter, lang: $lang, reverseFilter: $reverseFilter, structuredFilter: $structuredFilter) {\n bbox\n features {\n bbox\n type\n }\n type\n }\n}",
"variables": {
"detailsFilter": {
"categories": true,
"gids": [
"string"
]
},
"filter": {
"boundaryCircleLat": 0,
"boundaryCircleLon": 0,
"boundaryCircleRadius": 0,
"boundaryCountry": "string",
"boundaryGid": "string",
"boundaryRectMaxLat": 0,
"boundaryRectMaxLon": 0,
"boundaryRectMinLat": 0,
"boundaryRectMinLon": 0,
"focusPointLat": 0,
"focusPointLon": 0,
"isAutocomplete": false,
"layers": [
"address"
],
"size": 10,
"sources": [
"geonames"
],
"text": "string"
},
"lang": "string",
"reverseFilter": {
"boundaryCircleRadius": 0,
"boundaryCountry": "string",
"boundaryGid": "string",
"layers": [
"address"
],
"pointLat": 0,
"pointLon": 0,
"sources": [
"geonames"
]
},
"structuredFilter": {
"address": "string",
"borough": "string",
"boundaryCircleLat": 0,
"boundaryCircleLon": 0,
"boundaryCircleRadius": 0,
"boundaryCountry": "string",
"boundaryGid": "string",
"boundaryRectMaxLat": 0,
"boundaryRectMaxLon": 0,
"boundaryRectMinLat": 0,
"boundaryRectMinLon": 0,
"country": "string",
"county": "string",
"focusPointLat": 0,
"focusPointLon": 0,
"layers": [
"address"
],
"locality": "string",
"neighbourhood": "string",
"postalcode": "string",
"region": "string",
"size": 10,
"sources": [
"geonames"
],
"text": "string"
}
}
}'const response = await fetch("https://api.multibasecs.de/graphql", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: "{\n \"query\": \"query GeocodingPlacesGeoJSON($detailsFilter: GeocodingPlacesGeoJSONItemsDetailsSearchFilterInput, $filter: GeocodingPlacesGeoJSONItemsSearchFilterInput, $lang: String, $reverseFilter: GeocodingPlacesGeoJSONItemsReverseSearchFilterInput, $structuredFilter: GeocodingPlacesGeoJSONItemsSearchStructuredFilterInput) {\\n GeocodingPlacesGeoJSON(detailsFilter: $detailsFilter, filter: $filter, lang: $lang, reverseFilter: $reverseFilter, structuredFilter: $structuredFilter) {\\n bbox\\n features {\\n bbox\\n type\\n }\\n type\\n }\\n}\",\n \"variables\": {\n \"detailsFilter\": {\n \"categories\": true,\n \"gids\": [\n \"string\"\n ]\n },\n \"filter\": {\n \"boundaryCircleLat\": 0,\n \"boundaryCircleLon\": 0,\n \"boundaryCircleRadius\": 0,\n \"boundaryCountry\": \"string\",\n \"boundaryGid\": \"string\",\n \"boundaryRectMaxLat\": 0,\n \"boundaryRectMaxLon\": 0,\n \"boundaryRectMinLat\": 0,\n \"boundaryRectMinLon\": 0,\n \"focusPointLat\": 0,\n \"focusPointLon\": 0,\n \"isAutocomplete\": false,\n \"layers\": [\n \"address\"\n ],\n \"size\": 10,\n \"sources\": [\n \"geonames\"\n ],\n \"text\": \"string\"\n },\n \"lang\": \"string\",\n \"reverseFilter\": {\n \"boundaryCircleRadius\": 0,\n \"boundaryCountry\": \"string\",\n \"boundaryGid\": \"string\",\n \"layers\": [\n \"address\"\n ],\n \"pointLat\": 0,\n \"pointLon\": 0,\n \"sources\": [\n \"geonames\"\n ]\n },\n \"structuredFilter\": {\n \"address\": \"string\",\n \"borough\": \"string\",\n \"boundaryCircleLat\": 0,\n \"boundaryCircleLon\": 0,\n \"boundaryCircleRadius\": 0,\n \"boundaryCountry\": \"string\",\n \"boundaryGid\": \"string\",\n \"boundaryRectMaxLat\": 0,\n \"boundaryRectMaxLon\": 0,\n \"boundaryRectMinLat\": 0,\n \"boundaryRectMinLon\": 0,\n \"country\": \"string\",\n \"county\": \"string\",\n \"focusPointLat\": 0,\n \"focusPointLon\": 0,\n \"layers\": [\n \"address\"\n ],\n \"locality\": \"string\",\n \"neighbourhood\": \"string\",\n \"postalcode\": \"string\",\n \"region\": \"string\",\n \"size\": 10,\n \"sources\": [\n \"geonames\"\n ],\n \"text\": \"string\"\n }\n }\n}"
});import requests
response = requests.post(
"https://api.multibasecs.de/graphql",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
data="{\n \"query\": \"query GeocodingPlacesGeoJSON($detailsFilter: GeocodingPlacesGeoJSONItemsDetailsSearchFilterInput, $filter: GeocodingPlacesGeoJSONItemsSearchFilterInput, $lang: String, $reverseFilter: GeocodingPlacesGeoJSONItemsReverseSearchFilterInput, $structuredFilter: GeocodingPlacesGeoJSONItemsSearchStructuredFilterInput) {\\n GeocodingPlacesGeoJSON(detailsFilter: $detailsFilter, filter: $filter, lang: $lang, reverseFilter: $reverseFilter, structuredFilter: $structuredFilter) {\\n bbox\\n features {\\n bbox\\n type\\n }\\n type\\n }\\n}\",\n \"variables\": {\n \"detailsFilter\": {\n \"categories\": true,\n \"gids\": [\n \"string\"\n ]\n },\n \"filter\": {\n \"boundaryCircleLat\": 0,\n \"boundaryCircleLon\": 0,\n \"boundaryCircleRadius\": 0,\n \"boundaryCountry\": \"string\",\n \"boundaryGid\": \"string\",\n \"boundaryRectMaxLat\": 0,\n \"boundaryRectMaxLon\": 0,\n \"boundaryRectMinLat\": 0,\n \"boundaryRectMinLon\": 0,\n \"focusPointLat\": 0,\n \"focusPointLon\": 0,\n \"isAutocomplete\": false,\n \"layers\": [\n \"address\"\n ],\n \"size\": 10,\n \"sources\": [\n \"geonames\"\n ],\n \"text\": \"string\"\n },\n \"lang\": \"string\",\n \"reverseFilter\": {\n \"boundaryCircleRadius\": 0,\n \"boundaryCountry\": \"string\",\n \"boundaryGid\": \"string\",\n \"layers\": [\n \"address\"\n ],\n \"pointLat\": 0,\n \"pointLon\": 0,\n \"sources\": [\n \"geonames\"\n ]\n },\n \"structuredFilter\": {\n \"address\": \"string\",\n \"borough\": \"string\",\n \"boundaryCircleLat\": 0,\n \"boundaryCircleLon\": 0,\n \"boundaryCircleRadius\": 0,\n \"boundaryCountry\": \"string\",\n \"boundaryGid\": \"string\",\n \"boundaryRectMaxLat\": 0,\n \"boundaryRectMaxLon\": 0,\n \"boundaryRectMinLat\": 0,\n \"boundaryRectMinLon\": 0,\n \"country\": \"string\",\n \"county\": \"string\",\n \"focusPointLat\": 0,\n \"focusPointLon\": 0,\n \"layers\": [\n \"address\"\n ],\n \"locality\": \"string\",\n \"neighbourhood\": \"string\",\n \"postalcode\": \"string\",\n \"region\": \"string\",\n \"size\": 10,\n \"sources\": [\n \"geonames\"\n ],\n \"text\": \"string\"\n }\n }\n}",
)Response
{
"data": {
"GeocodingPlacesGeoJSON": {
"bbox": [
0
],
"features": [
{
"bbox": [
0
],
"type": "string"
}
],
"type": "string"
}
}
}