Class: NearPoint

bemap.NearPoint(optionsopt)

new NearPoint(optionsopt)

BeNomad BeMap JavaScript API - NearPoint One POI in the array returned by `bemap.NearPoiSearch.nearPoi()`. Wire shape from the BeMap server (cross-checked against a real `POST service/nearpoi/1.0` response): { coordinate: { lon, lat }, // POI location distance: long, // straight-line distance from the search centre, in metres duration: long, // estimated travel duration for the active transport mode, in seconds type: string, // POI category code, e.g. "RESTAURANT" / "HOTEL_MOTEL" / "RENT_A_CAR" / "PHARMACY" / ... name: string, // POI display name (may be empty for unnamed POIs like parking areas) telephone: string // POI phone number when known (may be empty) }
Parameters:
Name Type Attributes Description
options Object <optional>
Properties
Name Type Attributes Description
coordinate bemap.Coordinate <optional>
distance Number <optional>
Metres.
duration Number <optional>
Seconds.
type String <optional>
Server category code.
name String <optional>
telephone String <optional>
id String <optional>
Convenience; not emitted by the server.
postalAddress bemap.PostalAddress <optional>
Reserved for future server fields.
extra Object <optional>
Since:
  • 1.5.0
Source:

Methods

getDistance()

Source:

getDuration()

Source:

getType()

Source: