> For AI agents: the complete documentation index is available at /core-sdk/map/web/llms.txt, the full documentation bundle is available at /core-sdk/map/web/llms-full.txt.

# Search Venue within a Certain Distance

```js
// Sample Usage
const service = new MapxusMap.VenuesService();
const keywords = 'Tsuen Wan Plaza';
const center = [114.1113792, 22.3707381];
const distance = 40;
service.searchByDistance({center, distance, keywords});
```

**Parameters**

| Parameter | Type                     | Description                                      |
| --------- | ------------------------ | ------------------------------------------------ |
| options   | ISearchByDistanceOptions | \{ center, distance, keywords?, offset?, page? } |

- **center**(type \[number, number], required): center of the searching area, in the format of \[longitude, latitude].
- **distance**(type number, required): radius of the searching area, in km.
- **keywords**(type string, optional): keywords of the venue name.
- **offset**(type number, optional): quantity per request, default is 10.
- **page**(type number, optional): page number, default is 1.

> **Special Note:** The parameter 'offset' has limitations, the maximum value for each request must not exceed **100**. If you need to request more than 100 records of data, please make paginated requests.

**Returns** `TPromiseVenues`
IVenue:

- address
- bbox
- city?
- country
- description
- labelCenter
- name
- region
- type
- buildings
- defaultBuilding?
- id
- organization
- owner
- restricted
- sharedFloors
- venueOutlineId

Sample web page:

<iframe src="https://map-service.mapxus.com/bssww/venueSearchByDistance" width="100%" height="550px"></iframe>
