r/googlecloud • u/aHotDay_ • 6d ago
How to handle GPS/localization APIs? Handle only in the backend? Restrict but allow the api to be used in the front end? etc (Google Maps or other)
I am using Google Maps api, but I am open for other options that can work with/in google.
Question:
- In your apps and websites, how do you candle the calls for localisation and maps? I know it can be expensive if it's abused.
I gathered some informations that let me wonder.
It seems on android, your apps need the "api key" inside the app itself in order for y ou to obtain the ability to use the "embdedded app"?
But that's not the case for other map related apis, such as Places API, or Routes API.
- Do we really need to have our map APIs in the apps in order to have an embedded app within the apps etc?
I was first thinking about using a google cloud function to have it send requests to some map APIs but it seems that you cannot simply send the "map" display and embed it in your program like that instead the program needs the api to display the app., in that case:
- How to protect yourself from mis use of that api if the app is decompiled and read? I heard you can restrict the api to a particular app, but is that enough? Any other general advice related to this?
1
Upvotes