google-maps-services-java | Java client library for Google Maps API Web Services | REST library
kandi X-RAY | google-maps-services-java Summary
kandi X-RAY | google-maps-services-java Summary
Java client library for Google Maps API Web Services
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Creates a Geoolocation Response from a Google Maps API response
- Read a JSON representation of a JSON object
- Returns a string representation of the directions
- Returns information about the wifi access point
- Sleeps for the given amount of time
- String representation of exception allowed to be retried
- Handle a POST request
- Reads a single distance object from a JSON response
- Reads the next price level from a JSON stream
- Reads a Distance object
- Reads a fare object from the Directions API
- Reserves and returns the next available ticket
- Returns a string representation of this itinerary
- Returns a String representation of the GeoLocationPayload
- Returns a string representation of this GeocodingResult
- Returns a string representation of this search result
- Constructs an appropriate ApiException from the response string
- Perform a POST request
- Reads the next day of the parser
- Reads a time object from a Directions API response
- Returns a string representation of this placeDetails
google-maps-services-java Key Features
google-maps-services-java Examples and Code Snippets
Community Discussions
Trending Discussions on google-maps-services-java
QUESTION
I am working on a school project and need to calculate the time it will take to travel between two locations preferably with the option to specify the mode of transportation inside of an android app.
I have come across the Google Distance Matrix API (documentation here) which seems to have the features that I am looking for, but it warns...
"If you are building a mobile application, you will need to introduce a proxy server to act as intermediary between your mobile application and the Google Maps API Web Services."
I know that this is for the protection of the API key and want to follow this pretty diligently. I'm wonder, is there another way to get the data I need for the app without setting up a proxy server?
I know I could use a service like Heroku to run the code that accesses the API, but this seems like a difficult option given that this is just a school project. Any other ideas on how to get the travel time for my app?
...ANSWER
Answered 2020-Mar-28 at 18:40Setting up a proxy server is the best way to secure your API key, but Google also suggests other security techniques such as obfuscation and pinning.
Having said that, if this is a school project and you won't make your API key public in a production environment, then you can just leave your API key unrestricted (and without a proxy server).
But do make sure that you monitor your API usage on a regular basis and that you regenerate your API key periodically and/or as needed. It's also strongly recommended that you set daily quota limits and budget alerts as per this FAQ so that you don't go over budget regardless.
Hope this helps!
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install google-maps-services-java
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page