BeMapAPI
BeMap 4.1.0

Near POI Find places nearby

BeMap name: Near POI

POST/nearpoi/1.0

The points of interest around a position, such as fuel stations, restaurants or car parks, limited by the distance to travel to them.

The whole description

In BeMap's words

Find POI around a coordinate, limited by distance of travel from coordinate to POI.

Find POI around a coordinate, limited by distance of travel from coordinate to POI.

Provisioned per account. This service is enabled per account; without it BeMap answers 400 with Access Denied.

Request body

JSON, Content-Type: application/json. Schema NearPoiRequest.

  • coordinateCoordinateSatrequired

    Coordinate of center of research, will be used with distance parameter.

    CoordinateSat fields
    • lonnumber (double)required

      Longitude in degrees decimal (WGS84).

      Also accepted as longitude.

    • latnumber (double)required

      Latitude in degrees decimal (WGS84).

      Also accepted as latitude.

    • headingnumber (double)

      Heading in degrees.

    • speednumber (float)

      Speed in km/h.

    • timeinteger (int64)

      GPS time in milliseconds (EPOCH).

    • satinteger (int32)

      Number of GPS satellites available.

  • distanceinteger (int64)required

    Limit of research in meters.

  • geoserverstring

    Geoserver name.

  • swidxinteger (int32)deprecated

    Switch index.

  • transportTypeenum

    Define the transportation mode: Car, pedestrian, truck, etc. By default PEDESTRIAN.

    9 accepted values
    PEDESTRIANPedestrian.
    BICYCLEBicycle.
    MOTORCYCLEMotorcycle.
    CARPassenger car.
    TAXITaxi.
    PUBLIC_BUSPublic bus.
    EMERGENCYEmergency vehicle.
    DELIVERY_TRUCKDelivery truck. Deprecated, use TRUCK instead.
    TRUCKTruck.
  • orderByenum

    Sort the result by distance or duration in either ascending or descending. Disable by default.

    4 accepted values
    DISTANCE_ASCSort by distance in either ascending.
    DISTANCE_DESCSort by distance in either descending.
    DURATION_ASCSort by duration in either ascending.
    DURATION_DESCSort by duration in either descending.
  • plboolean

    Enable the output polyline geometry of route. Set to true to enable otherwise false. Disable by default.

  • eplboolean

    Enable the output encoded polyline geometry of route with Google Algorithm. Set to true to enable otherwise false. Disable by default.

  • serviceCategoriesstring[]

    Service categories. POI Class ID (numeric value defining the type of service, see the Class ID list in Glossary menu).

Response

200, schema NearPoiResponse.

Response fields
  • poisNearPoint[]

    Points of interests.

    NearPoint fields
    • coordinateCoordinate

      Geographical coordinate of POI.

      Coordinate fields
      • lonnumber (double)required

        Longitude in degrees decimal (WGS84).

        Also accepted as longitude.

      • latnumber (double)required

        Latitude in degrees decimal (WGS84).

        Also accepted as latitude.

    • distanceinteger (int64)

      Distance of travel in meters between the input coordinate and POI.

    • durationinteger (int64)

      Duration of travel in seconds between the input coordinate and POI.

    • typestring

      Type of POI.

    • namestring

      Name of POI.

    • telephonestring

      Phone number of POI.

    • commentstring

      Comment.

    • polylineCoordinateFullName[]

      Polyline geometry of route between start coordinate and the POI.

      CoordinateFullName fields
      • longitudenumber (double)required

        Longitude in degrees decimal (WGS84) (double).

      • latitudenumber (double)required

        Latitude in degrees decimal (WGS84) (double).

      • altitudenumber (double)

        Altitude in meters.

    • encodedPolylinestring

      Polyline geometry of route between start coordinate and the POI. It is a composed of coordinates list and encoded with Google Algorithm.

Errors

  • 400 Bad Request, ErrorResponse
  • 302 No credentials were sent. Do not follow the redirect.
  • 401 The account or the API key is wrong.

How to read each one: Errors.

Reference pages