Google Places API - 如何得到像这样的两张照片的迷你地图?

Google Places API - How to get the mini map with two photos like so?

Google Places API - 如何得到像这样的两张照片的迷你地图?

但是,图像的一部分丢失了。谁能指导我?

我只能得到位图图像的左侧部分,但缺少带有 Google 文字的照片的右侧部分。

导游:https://developers.google.com/places/android-api/photos

我可以建议您尝试 Place Photo Requests HTTP 请求:

https://maps.googleapis.com/maps/api/place/photo?parameters

示例:

https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&photoreference=CnRtAAAATLZNl354RwP_9UKbQ_5Psy40texXePv4oAlgP4qNEkdIrkyse7rPXYGd9D_Uj1rVsQdWT4oRz4QrYAJNpFX7rzqqMlZw2h2E2y5IKMUZ7ouD_SlcHxYq1yL4KbKUv3qtWgTK0A6QbGh87GB3sscrHRIQiG2RrmU_jF4tENr9wGS_YxoUSSDrYjWmrNfeEHSGSc3FyhNLlBU&key=YOUR_API_KEY

您可能还想使用 Panoramio API.

this thread 尝试这个答案

您可以通过以下两种方式在照片旁边放置地图:

  1. 使用 MapView object from the Android Maps API SDK.

  2. 使用 Google Static Maps API 通过 HTTP 请求地图位图。