Google maps search to get lots of results at once - google-maps

I want to know if there's any way to get my map to show many search results like this one on their http://maps.google.com.
For example, if I search for "restaurants japan", I would like my map to show it like this screenshot.
=> http://i3.minus.com/iGzzuu1bBHgNJ.png
The closest approach I found is Google Places Search, but they say it can return only 60 results at most. This would not be enough for me.
Since I need to add a load of custom markers after the searching, I don't think <iframe> embedding couldn't help me here. Am I right?
Also, if I need it to show only red dots (remove those (A-xx) pins), how would I do it?

A Radar Search will return up to 200 results (but with less detail and for more "cost")
reference

Related

When does getPlaces() of class google.maps.places.SearchBox return more than one place?

I am using the Google Map Javascript API v3 and also the google.maps.places.Searchbox class so the user can get to the place he is looking for.
As I saw the example code of Google
searchBox.getPlaces() is an array and can return more than one place. But as I tried more than once the Places Searchbox I never got more than one place.
So in which case does the searchBox find more than one place?
I am considering to ignore Searches which deliver more than one place because in my use case (find shops nearby in one place) it has to be just one place. But for this reason I wanted to know when it is the fact that the searchbox delivers more than one place as I didn't provoke this and could not find any documentation about that.
Results that return multiple matches like "coffee" or "mcdonalds".

Google Places URL from Address

I want to link to my google places listing using the address.
This is being done automatically as I have hundreds of addresses.
The format shown in the share on google maps is https://www.google.com/maps/place/name+of+place/#lat,long,zoom however the lat/long is not always selecting the correct places listing.
In some cases the location selected is several states away which makes no sense, though the map is always zoomed to the correct coordinates and the correct listing is right there on the map.
Finally found a combination that seems to work:
https://www.google.com/maps/search/name+of+place,+address+of+place/#lat,long,zoom
Apparently search works if you're very, very specific.

a custom marker for each type of place

i basically want to create a map which shows all the hotspots.
a bit like what this example does: google maps example
for example i'm going on a vacation and i want to know the nearest supermarket, nightclubs and bars. so i want to just type in a location and it shows me these spots with a custom marker.
i can figure most of this out myself but i can't seem to get multiple custom markers in there.
The results returned by a placesSearch contain multiple properties for each result, one of them is the icon-property which contains the URL of the icon, e.g.:http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png
i've found the answer in a different example:
https://developers.google.com/maps/tutorials/customizing/custom-markers#customize_marker_icons_for_different_markers

are plaetze (squares) included in the google places api

I am using the Google Places Api in order to show a list of nearby places to the user. I am trying to include in the list the plaetze (squares) like Paradeplatz in Zurich:
https://maps.google.com/maps?q=Paradeplatz,+Z%C3%BCrich,+Schweiz&hl=el&ie=UTF8&ll=47.36996,8.539225&spn=0.001817,0.004823&sll=37.0625,-95.677068&sspn=34.808514,79.013672&oq=paradeplatz&hq=Paradeplatz,+Z%C3%BCrich,+Schweiz&t=m&z=18
No matter if i include all the supported Places types from here:
https://developers.google.com/places/documentation/supported_types
the Paradeplatz does not appear. Do you have any clue why this is happening?
Paradeplatz does appear in the Places data. Looks like it is in approximately the right place, not sure how to search for only "plaetze".
If you are interested specifically in displaying squares, perhaps try searching via name parameter with a value like Platz (square) instead of using the types parameter. Searching by category (types parameter) might return fewer (or none) results than expected if Google hasn't yet added the actual categories to the items in its Places API database.

Google Map or Mapquest API to track the visible area

I am trying reverse lookup of the locations from the maps.
Say, I have different locations in my database with their co-ordinates and details.
Now, whenever I zoomin/out or drag the map (in Mapquest) all entries should be displayed in a dropdown with the visible area of the map. It should update the list according to the map zoom level and position.
Is there anyway to do this. I am Ok with Google maps also.
Here is the link what I want to achieve.
http://oobgolf.com/courses/finder/
Basically...the business logic is like this:
You need to get the boundaries from the map object and then pass these as parameters via AJAX to the SQL query which fetches the records, e.g minLat/maxLat & minLng/maxLng ... these go into the WHERE condition. This will "cut out a rectangle" from your geo-data. You might adjust these values by 5-10% - so that points very close to the boundaries will not be painted to the map (that's just a cosmetic fix).
Just found some sample JS code on my drive for the Google Maps API (it uses jQuery):
function loadViewport() {
var b = map.getBounds();
$.minY = b.getNorthEast().lng();
$.maxY = b.getSouthWest().lng();
$.minX = b.getSouthWest().lat();
$.maxX = b.getNorthEast().lat();
$.url = "http://www.somehost.com/data.php?mode=viewport&minX="+$.minX+"&maxX="+$.maxX+"&minY="+$.minY+"&maxY="+$.maxY;
$.ajax({type:"GET",url:$.url,dataType:"json",success: parseJSON});
}
Populating to listing to the left will need to by done in function parseJSON() ...
The WHERE condition of the SQL would be something like that:
WHERE
(`location`.`latitude` BETWEEN ".(float)$minX." AND ".(float)$maxX.")
AND
(`location`.`longitude` BETWEEN ".(float)$maxY." AND ".(float)$minY.")
Of course the columns in the table need to be of data-type float - else this won't work for sure.
As you can see, I'm casting from string to float - in order to enable the comparison...
Hope this helps, the code for MapQuest may vary - but the logic should be quite the same.
Source
This logic works for the MapQuest APIs as well. You will need to pass the current extent of your map into the query so that you can query the database based on the extent of the map. The results from the query would then populate your drop-down menu, so all POIs currently showing on the map will have a corresponding item in the drop-down menu.
If you're using the MapQuest JavaScript API, take a look at the MQA.TileMap.getBounds method, which returns the current bounding box of the map extent. I've found the forums on the MapQuest Developer Network website to be extremely helpful when I've had questions, so don't hesitate to post a question or code sample there if you need help or need further clarification. Here's the link: http://developer.mapquest.com/web/products/forums/