I search for "ankara polis karakolları" on maps.google.com and google returned me more than 10 results as seen from the link:
http://tinyurl.com/cssna5v
When I use this link http://maps.googleapis.com/maps/api/geocode/json?address=ankara+polis+karakollar%C4%B1&sensor=true to get the same result, I can only get 10 results which is same as the number of results shown on google maps page
Is there a way of getting all the search results using Google Maps API ?
The results on maps.google.com are different from those returned by the geocoder, they include other search results as well ("Places", see the Google Places API and others).
Also (for what it is worth) see this entry in the FAQ
Related
As the Google Search Console is now fully integrated into GA...
(...see http://searchengineland.com/google-search-console-metrics-now-deeply-integrated-google-analytics-249334 ...)
...we would like to get access to e.g. the search terms via API (e.g. to access the data via spreadsheets). Therefore we want to know if this is possible at all - and if yes, which dimensions & metrics can be accessed.
The corresponding API page doesn´t help atm:
https://developers.google.com/analytics/devguides/reporting/core/dimsmets#cats=page_tracking,content_grouping,channel_grouping
Cheers!
There are two ways.
The first solution you posted yourself. The developers.google.com link is showing you exactly, what dimensions and metrics can be combined.
Try it yourself with the query explorer: https://ga-dev-tools.appspot.com/query-explorer/
Just add the metrics/dimensions you could probably need and try out what works.
If you need Search Console Data you should use the Search Console API ;)
There you go: https://developers.google.com/apis-explorer/#p/webmasters/v3/
The GA interface can show you the data, but GA is not the source of the data. And they also don't have a copy of it. You will need to use the right api.
Trying to mimic the 'what's here' feature of Google Maps in my own website but it seems that items of type 'natural_feature' are excluded from Google Maps 3 API geocoding and places searches, both nearby and radar, and also on text searches unless the EXACT name of the place is provided. This must have been an informed choice by Google to do this - anyone know the rationale, and better, offer a workaround? Seems crazy that I can't get the names of woods, nature reserves etc. any more...
Found out how to do it! If you get a geocoding API key from Google you can get all the data for natural features included in the JSON/XML response from a server request like the following (I was trying to get the data for "Gamsey Wood"):
https://maps.googleapis.com/maps/api/geocode/json?latlng=52.4180698,-0.2029999&result_type=natural_feature&key=YOUR_GOOGLE_GEO_KEY
Happy days!
Why do calls to the Google Maps API return different results than what I see in my browser?
This one returns hundreds of items :
https://www.google.com/maps/search/new+york+hotels/#40.7543024,-74.0025302,14z?hl=en
This one returns Around 30 items :
http://maps.googleapis.com/maps/api/geocode/xml?new+york+hotels&sensor=false
The geocoder returns postal addresses mainly. If you want "places" (like hotels), use the places API.
Why the feature of getting printable directions doesn't work anymore in google maps api? I used parameter pw=2 in the url to get directions with print option, but it now gives 404 error code.
Example: http://maps.google.com/maps?dir=to&saddr=philadelphia&daddr=New+York&pw=2
That was an undocumented function (at least by Google) of the "classic" google maps. It no longer works.
I have successfully used Google Places Api and was able to retrieve business establishments (shops) given a latlongbound and a keyword. But I cant stop wondering why it returns lesser shops than when you go to maps.google.com and type the keyword. Google Places does not even return those with a name and icon drawn on the map itself.
I want to retrieve a json with a similar result when typing a keyword on maps.google.com and I don't really mind if Google Places is not used.
Sounds like you may have additional filtering preventing you from querying all the results. Make sure you aren't restricting the 'bounds' or 'region' around your lat/long.
https://developers.google.com/maps/documentation/geocoding/
Good luck!