1

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

But, a part of the image was missing. Can anyone guide me?

I only can get the bitmap image left side part, but it missing the right side part of the photo with Google text.

The guide: https://developers.google.com/places/android-api/photos

Joyofio987
  • 191
  • 1
  • 12

2 Answers2

1

Here are two ways you can put a map next to the photo:

  1. Use a MapView object from the Android Maps API SDK.

  2. Use the Google Static Maps API to request a map bitmap via HTTP.

AndrewR
  • 10,759
  • 10
  • 45
  • 56
0

What I can suggest is that you try the Place Photo Requests HTTP request:

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

sample:

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

You might also want to try this answer from this thread using the Panoramio API.

Community
  • 1
  • 1
ReyAnthonyRenacia
  • 17,219
  • 5
  • 37
  • 56