Geo Fencing API를 사용하면 요청 또는 등록한 다각형 형태의 지리적 위치(Geo Fence)와 위치 좌표와의 관계를 분석할 수 있습니다. 위치 좌표가 해당 다각형 위치 경계 내에 있는지 확인합니다.
다각형 위치는 API에 직접 작성하여 요청할 수 있거나 또는 API를 통해 시스템에 업로드하여 필요 시 호출하여 사용할 수 있습니다.

Data Name
Geo Fencing API
BASE URL PATH
https://api.vessellink.com/v1/geofence
DATA COVERAGE
Global


1. Geo Fencing

USE OUR WIZARD TO TRY OUT THIS ENDPOINT ➜

1.1 Reqeust Parameter

curl --request GET \
     --url 'https://data.vessellink.com/v1/geofence?lat=32.5388&long=-143.2332' \
     --header 'Accept: application/json'
ParameterDescriptionType
lattarget latitude(float) ISO 6709, decimal point
longtarget longitude(float) ISO 6709, decimal point
geofenceGeometryThe geofencing geometry(array object) list of lat, lon

1.2 API Response

{
    "meta": {
        "code": 200,
        "lat": 32.6733,
        "long": 33.1743       
    },
    "isEntered": true
}
FieldDescriptionUnit
meta - codeResponse codeinteger
meta - lattarget latitude(float) ISO 6709, decimal point
meta - longtarget longitude(float) ISO 6709, decimal point
isEnteredWhether the specified location has entered the geofencetrue or false



2. Get Fence List

USE OUR WIZARD TO TRY OUT THIS ENDPOINT ➜

2.1 Request Parameter

curl --request GET \
     --url https://api.vessellink.com/vi/geofence/fenceList \
     --header 'Accept: application/json'
ParameterDescriptionType
N/A--

2.2 API Response

{
    "meta": {
        "code": 200,
        "id": "[email protected]",
        "fenceCount": 54
    },
    "geofences": [{
            "id": "lab021-0001",
            "timeRegisted": "2021-01-02T01:00:00Z",
            "geofenceName": "HRA 1, Korea",
            "geofenceGeometry": [

                [
                    33.237083,
                    28.553278
                ],
                [
                    34.018333,
                    27.504556
                ],
                [
                    35.92529296875,
                    24.806681353852
                ]
            ]
        },
        {
            "id": "lab021-0002",
            "timeRegisted": "2021-01-02T01:00:00Z",
            "geofenceName": "ECA 2, China",
            "geofenceGeometry": [
                [
                    32.714583,
                    29.448333
                ],
                [
                    33.237083,
                    28.553278
                ],
                [
                    34.018333,
                    27.504556
                ],
                [
                    35.92529296875,
                    24.806681353852
                ]
            ]
        }

    ]
}
FieldDescriptionUnit
meta - codeResponse codeinteger
meta - idAccount idstring
meta - fenceCountNumber of the fence registered at systeminteger
'geofences-id`Id of geofence registratedstring
'geofences-timeRegisted`The datetime of geofence registratedsting
'geofences-geofenceName`The geofencing namestring
'geofences-geofenceGeometry`The geofencing geometry(array object) array of lat, lon



3. Add Fence

USE OUR WIZARD TO TRY OUT THIS ENDPOINT ➜

3.1 Request Parameter

ParameterDescriptionType
geofenceNameThe geofence name to registerstring
geofenceGeometryThe geofence geometry to register(array object) array of lat, lon

3.2 API Response

{
    "meta": {
        "code": 200,
        "geofenceName": "HRA1, Korea",
        "fenceId": "lab021-0013"
    },
    "result": true,
    "registedTime": "2021-01-01T00:00:00Z"
}
FieldDescriptionUnit
meta - codeResponse codeinteger
meta - geofenceNameThe geofence name registeredstring
meta - fenceIdId of geofence registratedstring
resultThe geofence registration resulttrue or false
registedTimeThe datetime of geofence registration(string) ISO 8601 date



4. Delete Fence

USE OUR WIZARD TO TRY OUT THIS ENDPOINT ➜

4.1 Request Parameter

ParameterDescriptionType
idGeofence Id to delete(string) uuid

4.2 API Response

FieldDescriptionUnit
meta - codeResponse codeinteger
meta - geofenceNameThe geofence name deletedstring
meta - fenceIdId of geofence deletedstring
resultDelete resulttrue of false
deleteTimeThe date time deleted the fence(string) ISO 8601 date