findPlacesNearPoint
findPlacesNearPoint
FunctionfindPlacesNearPoint(requestOptions: IFindPlacesNearPointOptions): Promise<IFindPlacesNearPointResponse>
Searches places that are within a given radius of a geographic point.
You must supply the x
and y
coordinates of the point that you wish
to search from. You can either specify a search radius, or use the
default (500 meters). You could use this method to search for places
around a user's GPS position, or a location clicked on a map.
The returned places contain basic data such as name, category and
location. You can use the getPlace
method to get additional
details for a given place.
You can refine the results by supplying additional search parameters, including:
- A list of category Ids, see
searchCategories
orgetCategories
. - A partial name filter with
name
option
As this request can return many results, pagination is supported.
Regardless of paging, the maximum number of places that can be returned
by a single query is 200
. When a query results in more than 200
places, the response will contain the property"maxResultsExceeded":true
in addition to place results. If maxResultsExceeded
is true an additional method response.nextPage()
can be used to get the next page of results.
Parameters
Parameter | Type |
---|---|
request | IFindPlacesNearPointOptions |
Returns
Promise<IFindPlacesNearPointResponse>