Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Fancy Fields … You can retrieve the details of a Place by providing a place_id.

ENDPOINT

 GET 
/rest/fancyfields/1.0/placedetails/{place_id}

RESPONSE

{
    "html_attributions": [],
    "result": {
        "address_components": [
            {
                "long_name": "5050",
                "short_name": "5050",
                "types": [
                    "street_number"
                ]
            },
            {
                "long_name": "Kingsley Drive",
                "short_name": "Kingsley Dr",
                "types": [
                    "route"
                ]
            },
            {
                "long_name": "Madisonville",
                "short_name": "Madisonville",
                "types": [
                    "neighborhood",
                    "political"
                ]
            },
            {
                "long_name": "Cincinnati",
                "short_name": "Cincinnati",
                "types": [
                    "locality",
                    "political"
                ]
            },
            {
                "long_name": "Hamilton County",
                "short_name": "Hamilton County",
                "types": [
                    "administrative_area_level_2",
                    "political"
                ]
            },
            {
                "long_name": "Ohio",
                "short_name": "OH",
                "types": [
                    "administrative_area_level_1",
                    "political"
                ]
            },
            {
                "long_name": "United States",
                "short_name": "US",
                "types": [
                    "country",
                    "political"
                ]
            },
            {
                "long_name": "45227",
                "short_name": "45227",
                "types": [
                    "postal_code"
                ]
            }
        ],
        "adr_address": "<span class=\"street-address\">5050 Kingsley Dr</span>, <span class=\"locality\">Cincinnati</span>, <span class=\"region\">OH</span> <span class=\"postal-code\">45227</span>, <span class=\"country-name\">USA</span>",
        "formatted_address": "5050 Kingsley Dr, Cincinnati, OH 45227, USA",
        "geometry": {
            "location": {
                "lat": 39.1693956,
                "lng": -84.4085668
            },
            "viewport": {
                "northeast": {
                    "lat": 39.1708697802915,
                    "lng": -84.40360735
                },
                "southwest": {
                    "lat": 39.1681718197085,
                    "lng": -84.41021995
                }
            }
        },
        "icon": "https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/geocode-71.png",
        "icon_background_color": "#7B9EB0",
        "icon_mask_base_uri": "https://maps.gstatic.com/mapfiles/place_api/icons/v2/generic_pinlet",
        "name": "5050 Kingsley Dr",
        "place_id": "ChIJw8Hb3DytQYgRb9XCjImoHr0",
        "plus_code": {
            "compound_code": "5H9R+QH Cincinnati, OH, USA",
            "global_code": "86FQ5H9R+QH"
        },
        "reference": "ChIJw8Hb3DytQYgRb9XCjImoHr0",
        "types": [
            "street_address"
        ],
        "url": "https://maps.google.com/?q=5050+Kingsley+Dr,+Cincinnati,+OH+45227,+USA&ftid=0x8841ad3cdcdbc1c3:0xbd1ea8898cc2d56f",
        "utc_offset": -300,
        "vicinity": "Cincinnati"
    },
    "status": "OK"
}

  • No labels