How to Render Photos of Any City in the World in Your App

Using Google Places API

Image for post
Image for post

1-Place Autocomplete

https://maps.googleapis.com/maps/api/place/autocomplete/json?input=TEXT_INPUT_VALUE&types=(cities)&key=YOUR_API_KEY
Image for post
Image for post
Image for post
Image for post

2-Place Details

https://maps.googleapis.com/maps/api/place/details/json?place_id=PLACE_ID_OF_SELECTED_CITY&fields=photo&key=YOUR_API_KEY
Image for post
Image for post

3-Place Photos

https://maps.googleapis.com/maps/api/place/photo?&photoreference=PHOTO_REFERENCE&key=YOUR_API_KEY
Image for post
Image for post

Theatre artist turned Software Engineer 🤓

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store