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/05-venue-search/03-search-by-distance.md.
MapxusDeveloper Platform
Products
Positioning APIAccess real-time indoor coordinates and contextual signals.API
UI SDKProduction-ready indoor map interfaces and UI components.AndroidiOS

Search Venue within a Certain Distance

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

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