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

# Search Building within a Certain Distance

```js
// Sample Usage
const service = new MapxusMap.BuildingsService();
const keywords = 'elements';
const center = [114.16158, 22.30498];
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 building 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** `TPromiseBuildings`
IBuilding:

- address
- bbox
- city?
- country
- description
- labelCenter
- name
- region
- type
- buildingId
- buildingName
- buildingOutlineId
- defaultFloor?
- floors
- groundFloor
- isPrivate
- organization
- venueId
- venueName

Sample web page:

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