> 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 POIs within a Rectangular Area

```js
// Sample Usage
const service = new MapxusMap.PoisService();

service.searchByBounds(
    {
	    bounds: [[114.15816, 22.30124], [114.16561, 22.30908]],
	    orderBy: MapxusMap.PoisOrderBy.DEFAULT_NAME
    }
);
```

**Parameters**

| Parameter | Type                      | Description                                      |
| --------- | ------------------------- | ------------------------------------------------ |
| options   | IPoiSearchByBoundsOptions | \{ bounds, keywords?, orderBy?, offset?, page? } |

- **bounds**(type \[\[number, number], \[number, number]], required): An array of LngLat coordinates in \[sw, ne] order.
- **keywords**(type string, optional): POI name keyword.
- **orderBy**(type MapxusMap.PoisOrderBy, optional): POIs' order, **cannot be used with 'keywords' at the same time**. Available values: MapxusMap.PoisOrderBy.DEFAULT\_NAME
- **offset**(type number, optional): Quantity per page, the maximum is 100, default is 10.
- **page**(type number, optional): Results for specified page number. Default is 1.

> **Special Note:** (1) The area of the 'bbox' parameter cannot exceed **400km²**.
> (2) Parameter 'offset' cannot exceed **100**.

**Returns** `TPromisePois<IPoi | ISharedPoi>`
IPoi:

- floor
- floorId
- accessibilityDetail
- category
- descriptions
- distance?
- id
- location
- name
- osmRefId
- poiId
- buildingId
- venueId

ISharedPoi:

- sharedFloorId
- sharedFloorNames
- accessibilityDetail
- category
- descriptions
- distance?
- id
- location
- name
- osmRefId
- poiId
- buildingId
- venueId

Sample web page:

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