This question already has an answer here:
Districts/Sublocalities: List of, or how to get using Google API
(1 answer)
Closed 8 years ago.
Does anyone know if there is a way to get a list of cities that are recognized by Google Maps? I've been searching around and can't seem to find any available/updated list...
This may answer your question: Districts/Sublocalities: List of, or how to get using Google API tl;dr -- forbidden by the TOS, but there are alternatives.
Related
This question already has answers here:
Can't get transit directions in Japan
(3 answers)
Closed 2 years ago.
i would like to know the travel duration between two train stations by train. My request looks like this:
https://maps.googleapis.com/maps/api/directions/json?origin=komagome+station&destination=ueno+station&mode=transit&transit_mode=train&key=++your_api_key++
Unfortunately the resulting json only includes travel directions/information by walking. I'm just clueless here...
Thanks in advance for your help.
Transit directions are not supported in Japan
from the FAQ:
In which countries are transit directions available?
The Google Maps Directions Service, which includes the Directions API and Distance Matrix API, supports all the transit providers in the transit coverage list, except for those in Japan.
This question already has answers here:
How do I securely use Google API Keys
(2 answers)
How do I create environment variables to protect my Google Maps API Key(or any other secret value) for my website?
(2 answers)
Closed 2 years ago.
My question is how to display the google map without exposing the api-key in the front end.
For retrieving simple JSON response from google i can store the api-key on my server and then using fetch in my react Frontend retrieve data from google over my server. e.g.:
react front <-> myServer [gmap api key] <-> google
fetch/axios('requestToMyServer').then(display Response)
However cant figure out so simple how to dsiplay the actual map.
Storing the API-Key in the .env as a variable is not a solution, if I can simply console.log(varName) from the client and abuse the key.
All kinds of hints, suggestions and solutions are welcome.
Thank you all in advance <3
This question already has an answer here:
Google Directions Api returning 0 routes
(1 answer)
Closed 3 years ago.
I'm trying to an ETA from point A to C with a waypoint in-between, B.
This is the call I'm making to Google
https://maps.googleapis.com/maps/api/directions/json?sensor=true&mode=driving&origin=37.757946%2C-122.4048&destination=37.757954%2C-122.426349&waypoints=via%3A37.746560%2C-122.408328
it gives ZERO_RESULTS back which indicates no route could be found.
I added the waypoint with "via:" in front of it which doesn't add an additional leg to the route. However when I remove the "via:" the result is as expected.
These points are typical places in San Francisco so there definitely should be a route between them. If I use different lat/longs then it fixes it. But this error happens with more than just a few specific points.
Any idea why it's happening?
Remove via from your url
https://maps.googleapis.com/maps/api/directions/json?sensor=true&mode=driving&origin=37.757946%2C-122.4048&destination=37.757954%2C-122.426349&waypoints=37.746560%2C-122.408328
the URL above is correct now
This question already has answers here:
Google has disabled the use of the maps API for this application [closed]
(2 answers)
Closed 10 years ago.
My website (http://foomap.de/), which features a fullscreen map via Google Maps API v3, suddenly stopped working today. Instead it presents the error message
"Google has disabled the use of Maps API for this application. See terms of Service for more information: http://www.google.com/help/terms_maps.html"
I'm neither aware of any violations of google's terms of service nor did the website reach any usage limits (according to Google's API console).
Any ideas what is wrong?
assuming there are no other problems, you have a daily and per-second limit. You may be over quota.
Looks to be a google error on their end...
http://www.google.com.au/about/jobs/locations/sydney/
For now, remove the key parameter as its not a mandatory:
<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?sensor=SET_TO_TRUE_OR_FALSE">
</script>
It worked for me, but i still don't know why whats the problem.. I believe Google is doing some changes...
This question already has an answer here:
Where Are My Google Apps Domains?
(1 answer)
Closed 8 years ago.
A call to UserManager.getAllUsers() fails to return all users, looks like it's not aware of sub-domains using google apps. It only returns users for domain.edu and not sub.domain.edu. How can I obtain all available users ?
There's no concept of a sub-domain in google apps. When a google apps domain is set up using a sub-domain, it's an independent instance of Google Apps.