> 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.

# Point-to-Point Pathway

Mapxus Map supports route planning of 2 or more points.

```js
// route planning service
var routeService = new MapxusMap.RouteService();

routeService
  .search({
      points: [
	      {
		      lat: 22.3711432,
		      lon: 114.1111332,
		      floorId: '2cdd6174730d4431b1aa730eda596ed4',
          },
	      {
		      lat: 22.373,
		      lon: 114.112,
		      floorId: '2cdd6174730d4431b1aa730eda596ed4',
          },
	      {
		      lat: 22.3705763,
		      lon: 114.1117146,
          }
      ],
	  vehicle: MapxusMap.VehicleType.EMERGENCY
  })
  .then(function(res) {
    console.log(res);
  })
  .catch(function(err) {
    console.error(err);
  });
```

**Parameters**

| Parameter | Type                | Description                  |
| --------- | ------------------- | ---------------------------- |
| options   | IRouteSearchOptions | \{points, vehicle?, locale?} |

- **points**(type array, required): an array of points, **1 \< \{points.length} \< 6**. Each point is an object with 4 properties:
  - **lat**(type number, required): latitude of the point.
  - **lon**(type number, required): longitude of the point.
  - **floorId**(type string, optional): floor ID of the point.
- **vehicle**(type MapxusMap.VehicleType, optional): vehicle type, default is "MapxusMap.VehicleType.FOOT".
- **locale**(type MapxusMap.PresetLanguage, optional): language-specific response.

**Returns** `TPromiseRoute`
IRoutePath:

- bbox
- distance
- instructions
- points
- snapped\_waypoints
- time

IInstruction:

- building\_id
- distance
- floor\_id
- heading
- interval
- on\_shared\_floor
- ordinal
- sign
- street\_name
- text
- time
- type
- venue\_id

Sample web page:

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