GoogleApi icon indicating copy to clipboard operation
GoogleApi copied to clipboard

FEATURE REQUEST: User settable BaseURL for API calls

Open CaseyBlackburn opened this issue 7 years ago • 3 comments

I'd be interested if you could make the change to allow a user settable BaseURL for the different APIs. The reason I'm interested in this is I want to have requests sent to one of my web servers for caching to reduce duplicate API requests over time.

Thanks, really liking this project.

CaseyBlackburn avatar Dec 28 '18 22:12 CaseyBlackburn

Hi

I am not sure i completely understand what you are trying to accomplish, (and I would to before adding the feature).

So basically you have a "mirror" of the Google service, and you want to try that before actually requesting at Google? If that's the case then I am pretty sure you would violate the terms of service of Google. It depends a bit on what kind of data you are caching, as it's different for each api. Here are some info:

  • https://cloud.google.com/maps-platform/terms/
  • https://cloud.google.com/maps-platform/terms/maps-service-terms/

vivet avatar Dec 29 '18 07:12 vivet

If you want to control the URL property, you can also derive your own implementation from another request, and thereby override the entire property, setting it to whatever you like, and still inheriting everything else from the base.

vivet avatar Dec 29 '18 12:12 vivet

Hey I hope you figured out how to override the request class to accomplish your use case.

Let me know if you still need something from me. Will close the issue.

vivet avatar Jan 08 '19 07:01 vivet