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, and this page is available as Markdown at /core-sdk/map/web/v10/08-wayfinding/01-point-to-point-pathway.md.
MapxusDeveloper Platform
Products
Positioning APIAccess real-time indoor coordinates and contextual signals.API
UI SDKProduction-ready indoor map interfaces and UI components.AndroidiOS

Point-to-Point Pathway

Mapxus Map supports route planning of 2 or more points.

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

ParameterTypeDescription
optionsIRouteSearchOptions{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: