First of all: Everythig is working at the moment. I just want your opinion for improvements.
I am currentyl developing an Android Application, that needs access to different Google APIs. So I created a API key and made a App restioction. I used that API Key inthe google_maps_api.xml to authentificate my App for the Google Maps API.
I then needed the Google Directions API. As far as I know the only way to acces it, is via HTTP request. The HTTP request needs the API key in it. Now the problem is, that my API key is App restricted. That means, it will not work with the HTTP request. I created a second API Key and removed the restriction to solve that problem at the moment. But that is not a good solution in my opinion.
I also found this SO Question from 2016, which has no answer but is facing the same problem.