amazon location service

2023-10-08 15:55
2023-10-08 15:55

Q&A

ジオコーディングに関する Q&A

名称から住所などの情報を取得したい

$ aws location list-place-indexes
{
    "Entries": [
        {
            "CreateTime": "2021-02-08T11:41:11.458000+00:00",
            "DataSource": "Esri",
            "Description": "Created by Amazon Location Service explore",
            "IndexName": "explore.place",
            "PricingPlan": "RequestBasedUsage",
            "UpdateTime": "2021-02-08T11:41:11.458000+00:00"
        }
    ]
}

$ aws location search-place-index-for-text --index-name explore.place --text "横浜アリーナ"
{
    "Results": [
        {
            "Place": {
                "Categories": [
                    "PointOfInterestType"
                ],
                "Country": "JPN",
                "Geometry": {
                    "Point": [
                        139.620187607,
                        35.512144542
                    ]
                },
                "Interpolated": false,
                "Label": "神奈川県横浜市港北区横浜アリーナ",
                "Municipality": "港北区",
                "Region": "神奈川県",
                        139.620187607,
                        35.512144542
                    ]
                },
                "Interpolated": false,
                "Label": "神奈川県横浜市港北区横浜アリーナ",
                "Municipality": "港北区",
                "Region": "神奈川県",
                "SupplementalCategories": [
                    "Performing Arts"
                ]
            },
            "Relevance": 1
        }
    ],
    "Summary": {
        "DataSource": "Esri",
        "MaxResults": 50,
        "ResultBBox": [
            139.620187607,
            35.512144542,
            139.620187607,
            35.512144542
        ],
        "Text": "横浜アリーナ"
    }
}
Copyright © 53ningen.com