-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Places photo request #163
Comments
Place Photos support is discussed over in #149. There hasn't yet been any work done towards supporting it from the iOS side (at least not that's currently public). |
You can use the Places web service API from an RN app, but you'd need some way of securing your API key. You'd typically use a referrer restriction on such keys, but you won't be able to do that in this context. Unfortunately, even if you manage that somehow, photo API support is (essentially) free when using the Android SDK but it costs money when using the web service API. See https://developers.google.com/maps/billing/understanding-cost-of-use#places-photo |
Probably best to setup Node.js on a server to do the Places / Photos API requests and pass it back to your app |
For anyone who needs Places Photos working on iOS and Android, here's my Node.js API code for getting places around a lat/lng and then adding a Places Photo to each Place returned in that location (if a photo exists for that place). Step 1: Setup a server somewhere - I used a Digital Ocean server Feel free to create a public Git repo for it so anyone can contribute to it. API code: https://pastebin.com/71h2Xv9x Note: You probably want to authenticate your user in your API before doing any Places requests. |
This is getting revisited sometime soon with the latest beta release, please see #198 |
Is there any way to use the Google Places Photos service for iOS yet? I can't see any updates for iOS in the Places branch. Any ETA?
The text was updated successfully, but these errors were encountered: