www.webdeveloper.com
Results 1 to 3 of 3

Thread: need assistance with google places api confused about something

  1. #1
    Join Date
    Sep 2006
    Location
    Wixom, MI
    Posts
    292

    Question need assistance with google places api confused about something

    In google places api docs they give you a list of parameters to use

    some required and some optional

    however one of the optional ones when removed causes it to fail

    I am trying to search for all places within radius of a certain area that match a certain type, no specific name or keyword just all places

    Code:
    https://maps.googleapis.com/maps/api/place/search/xml?location=42.493365,-83.430176&radius=25&types=restaurant&name=&sensor=false&key=
    This above is the url they give you obviously key= needs a google api key added after it, I removed mine before posting here

    name= is where you put a keyword that may appear in the name of the place your searching for, problem is, this is an optional parameter, however it never works when you choose not to use it

    so for example

    Code:
    https://maps.googleapis.com/maps/api/place/search/xml?location=42.493365,-83.430176&radius=25&types=restaurant&name=coney&sensor=false&key=
    returns all the places in the area specified that contain coney in the name and are some type of restaurant

    what I want is to display all restaurants in the specified area, regardless of their name

    Code:
    https://maps.googleapis.com/maps/api/place/search/xml?location=42.493365,-83.430176&radius=25&types=restaurant&name=&sensor=false&key=
    hence leaving name (the optional parameter) blank, but it doesnt work

    Can anyone help with this, why? what i can do? etc

  2. #2
    Join Date
    Jun 2011
    Posts
    1
    Did you ever get to the bottom of this? I'm having the exact same issue.

  3. #3
    Join Date
    Sep 2006
    Location
    Wixom, MI
    Posts
    292
    Nope never found a solution still having issues

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles