nearby search

This block is part of the google group and was last modified in core v10.4.28.

nearby search v10.4.28

search within Google Places for nearby points of interest.

In pins 9 + flow
  • flow
    flow
  • api key required
    value

    Your application's API key, created within your Google Cloud Platform Console.

  • lat required
    number

    The latitude around which to retrieve place information.

  • lon required
    number

    The longitude around which to retrieve place information.

  • radius (m) required
    number

    Defines the distance (in meters) within which to return place results. The maximum allowed radius is 50 000 meters. • Max: 50000

  • open now
    condition

    Only return places that are open now.

    Default false

  • type
    value

    Type of property to search e.g. accounting

    Default all

  • page token
    value

    The token from google to request the next page.

  • rankby
    value

    Rank results by prominence (default) or distance.

    Default prominence

  • scroll pages
    condition

    Auto scroll trough all the available pages.

    Default false

Out pins 6 + flow
  • flow
    flow
  • success
    condition

    returns true if requests succeeded

  • results
    array

    result of places without locality

  • has_next_page
    condition

    if there is a next page with results

  • route results
    array

    full results including locality

  • page_token
    value

    next page token to proceed the request

  • error
    value
places

A typical wiring for nearby search: a function trigger starts the flow; value feeds the api_key pin; number feeds the latitude pin; number feeds the longitude pin; number feeds the radius pin; the flow out pin feeds debug.

Studio canvas example for the nearby search block: typical wiring for nearby search.

Version history

Introduced in v10.4.28.


Back to google Return to the main group to view all sub-groups Back to google places Return to the group to view all blocks within this group