Location

Get information about a location


GET /latlng/:latitude/:longitude


Parameters
:latitude float Latitude (EPSG:4326)
:longitude float Longitude (EPSG:4326)
Response
200 https://api-v2.geo6.be/latlng/50.89794/4.36302 131.323 milliseconds
{
    "query": {
        "longitude": 4.36302,
        "latitude": 50.89794
    },
    "type": "FeatureCollection",
    "features": [
        {
            "type": "Feature",
            "id": 21004,
            "properties": {
                "type": "municipality",
                "id": 21004,
                "formatted_fr": "BRUXELLES",
                "formatted_nl": "BRUSSEL",
                "components": [
                    {
                        "type": "municipality",
                        "id": 21004,
                        "name_fr": "BRUXELLES",
                        "name_nl": "BRUSSEL",
                        "image": "https:\/\/api-v2.geo6.be\/zones\/map\/municipality\/21004"
                    },
                    {
                        "type": "province",
                        "name_fr": null,
                        "name_nl": null,
                        "name_de": null
                    },
                    {
                        "type": "region",
                        "name_fr": "R\u00e9gion de Bruxelles-Capitale",
                        "name_nl": "Brussels Hoofdstedelijk Gewest"
                    },
                    {
                        "type": "country",
                        "id": "be",
                        "name_fr": "Belgique",
                        "name_nl": "Belgi\u00eb",
                        "name_de": "Belgien"
                    }
                ]
            },
            "geometry": null
        }
    ]
}

GET /xy/:x/:y


Parameters
:x float X (EPSG:31370)
:y float Y (EPSG:31370)
Response
200 https://api-v2.geo6.be/xy/149597/176400 137.185 milliseconds
{
    "query": {
        "x": 149597,
        "y": 176400
    },
    "type": "FeatureCollection",
    "features": [
        {
            "type": "Feature",
            "id": 21004,
            "properties": {
                "type": "municipality",
                "id": 21004,
                "formatted_fr": "BRUXELLES",
                "formatted_nl": "BRUSSEL",
                "components": [
                    {
                        "type": "municipality",
                        "id": 21004,
                        "name_fr": "BRUXELLES",
                        "name_nl": "BRUSSEL",
                        "image": "https:\/\/api-v2.geo6.be\/zones\/map\/municipality\/21004"
                    },
                    {
                        "type": "province",
                        "name_fr": null,
                        "name_nl": null,
                        "name_de": null
                    },
                    {
                        "type": "region",
                        "name_fr": "R\u00e9gion de Bruxelles-Capitale",
                        "name_nl": "Brussels Hoofdstedelijk Gewest"
                    },
                    {
                        "type": "country",
                        "id": "be",
                        "name_fr": "Belgique",
                        "name_nl": "Belgi\u00eb",
                        "name_de": "Belgien"
                    }
                ]
            },
            "geometry": null
        }
    ]
}