Google Map Search

Google Map Search. Given a search query, return the searched google map information

Try it in the Widget Center

Click this url to try this widget and copy the Pro Config template.

Usage

Given the input query and the location information (latitude/langitude), returned the searched result of Google Map. The zoom_factor (ranges from 3 to 21) is used to adjust zoom-in/zoom-out on the map, which will affect the result. The format of the results depend on the input query

Input Parameters

NameTypeDescriptionDefaultRequired

query

string

The search query string that specifies what the search should be about.

latitude

number

the latitude of the location. if it is north, use positive numbers; if it is south, use negative numbers. The range is from -90 to +90

40.745

longitude

number

the longitude of the location. if it is east, use positive numbers; if it is west, use negative numbers. The range is from -180 to +180

-74.008

zoom_factor

integer

zoom factor. Should range from 3 (map completely zoomed out) to 21 (map completely zoomed in)

14

num_results

integer

The number of search results to return.

10

Output Parameters

NameTypeDescriptionFile Type

search_results

object

The result of google map search, the format depends on the input query, pleae refer to the output examples below

Output Example

// query: Coffee
{
  "search_results": {
    "local_results": [
      {
        "address": "1585 Broadway, New York, NY 10036",
        "gps_coordinates": {
          "latitude": 40.759896499999996,
          "longitude": -73.98527279999999
        },
        "phone": "(212) 541-7515",
        "rating": 3.9,
        "reviews": 1308,
        "title": "Starbucks Reserve"
      }
    ],
    "place_results": {}
  }
}

Last updated