Skip to main content

Smart Parking

Resouces​

API Doc For Parking Availability​

Development:
Swagger
https://mt-services-tb.fs-omc.io/api
Endpoint
https://mt-services-tb.fs-omc.io/api
API KEY b868b9fec608f8d222ce3999c8cdd992

Production(?):
Swagger
https://Lg-services.fs-omc.io/api
Endpoint
https://Lg-services.fs-omc.io

Google Slide​

https://docs.google.com/presentation/d/1624qlenV9ErQ6peLdU4isTUnn0U9c7VM/edit?usp=sharing&ouid=104086068685279114387&rtpof=true&sd=true

API Doc For Parking Redemption​

Swagger
https://onebangkok-api-carpark.dreamy-germain.119-59-118-127.plesk.page/swagger/index.html

Parking Availability​

Get API Token​

Request​

curl -s --location 'https://mt-services.fs-omc.io/api-keys' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic YWRtaW46bndxTmdZdHlDYjkyVlozUmN6QXVCeA==' \
--data '{
"name": "fs-api-service-xxx"
}'

Response​

{
"key": "xxxx",
"name": "fs-api-service-xxx",
"expireAt": "2024-11-27T05:14:08.958Z",
"_id": "65657720045500be6fdf4a32",
"__v": 0
}

Example API Call​

/api/parkingCars​

Get the list of parking cars

curl --location 'https://mt-services.fs-omc.io/api/parkingCars' \
--header 'X-API-KEY: 6d0775687c9a12f1ac4fc8765bec3177'

Response

[
{
"SPACESYSCODE": "8d71ca54ec6f47a195121c00ea34b419",
"SPACENO": "1-08",
"PARKSYSCODE": "fae2a7c6c7774b1eb03693ea38cc2034",
"PARKNAME": "NVK Parking Lot",
"FLOORSYSCODE": "e78b1ff0b847471fa62cfaca3b4f7edd",
"FLOORNAME": "Floor 1",
"LONGITUDE": "13.3000178151278",
"LATITUDE": "52.5183937488469",
"STATE": 1,
"INTIME": "2024-01-03T21:42:57+07:00",
"SPACEPICURI": null,
"PLATENOPICURI": null,
"ASWSYSCODE": null,
"PLATENOS": null,
"ALARMPLATENOS": null,
"SPACETYPEKEY": "0",
"SPACETYPE": "普通车位",
"PLATENO": "9กส1207",
"SPACEPICURL": null,
"PLATENOPICURL": null,
"GETTIME": 1704684720971,
"INTIMEUTC": 1704292977000,
"PARKMINUTES": 6529
},
...
}
]

/api/freeParkingLots​

Get the list for parking slots that are not used

curl --location 'https://mt-services.fs-omc.io/api/freeParkingLots' \
--header 'X-API-KEY: 6d0775687c9a12f1ac4fc8765bec3177'

Response

[
{
"SPACESYSCODE": "57ebd7c856d242f18178cd30dca6a114",
"SPACENO": "1-02",
"PARKSYSCODE": "fae2a7c6c7774b1eb03693ea38cc2034",
"PARKNAME": "NVK Parking Lot",
"FLOORSYSCODE": "e78b1ff0b847471fa62cfaca3b4f7edd",
"FLOORNAME": "Floor 1",
"LONGITUDE": "13.3001739845168",
"LATITUDE": "52.5183937622173",
"STATE": 0,
"INTIME": null,
"SPACEPICURI": null,
"PLATENOPICURI": null,
"ASWSYSCODE": null,
"PLATENOS": null,
"ALARMPLATENOS": null,
"SPACETYPEKEY": "0",
"SPACETYPE": "普通车位",
"PLATENO": null,
"SPACEPICURL": null,
"PLATENOPICURL": null,
"GETTIME": 1704684720971,
"INTIMEUTC": null
},
...
}
]

/api/findCarByPlateNo​

Find the car info by plate no.

curl --location 'https://mt-services.fs-omc.io/api/findCarByPlateNo' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: 6d0775687c9a12f1ac4fc8765bec3177' \
--data '{
"plateNo": "ขฉ8095"
}'

Response

[
{
"SPACESYSCODE": "a286d71e64674f23b821647d6e44b035",
"SPACENO": "1-09",
"PARKSYSCODE": "fae2a7c6c7774b1eb03693ea38cc2034",
"PARKNAME": "NVK Parking Lot",
"FLOORSYSCODE": "e78b1ff0b847471fa62cfaca3b4f7edd",
"FLOORNAME": "Floor 1",
"LONGITUDE": "13.300017800302",
"LATITUDE": "52.5185041840734",
"STATE": 1,
"INTIME": "2023-12-26T08:12:34+07:00",
"SPACEPICURI": null,
"PLATENOPICURI": null,
"ASWSYSCODE": null,
"PLATENOS": null,
"ALARMPLATENOS": null,
"SPACETYPEKEY": "0",
"SPACETYPE": "普通车位",
"PLATENO": "ขฉ8095",
"SPACEPICURL": null,
"PLATENOPICURL": null,
"GETTIME": 1704684840966,
"INTIMEUTC": 1703553154000,
"PARKMINUTES": 18862
}
]

/api/findParkingHistory​

curl --location 'https://mt-services.fs-omc.io/api/findParkingHistory' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: 45175e5359a46f24bd254a8f3e94d73d' \
--data '{
"plateNo": "2ฒบ2550"
}'

Response

[
{
"SPACESYSCODE": "a286d71e64674f23b821647d6e44b035",
"SPACENO": "1-09",
"PARKSYSCODE": "fae2a7c6c7774b1eb03693ea38cc2034",
"PARKNAME": "NVK Parking Lot",
"FLOORSYSCODE": "e78b1ff0b847471fa62cfaca3b4f7edd",
"FLOORNAME": "Floor 1",
"LONGITUDE": "13.300017800302",
"LATITUDE": "52.5185041840734",
"STATE": 1,
"INTIME": "2023-12-26T08:12:34+07:00",
"SPACEPICURI": null,
"PLATENOPICURI": null,
"ASWSYSCODE": null,
"PLATENOS": null,
"ALARMPLATENOS": null,
"SPACETYPEKEY": "0",
"SPACETYPE": "普通车位",
"PLATENO": "ขฉ8095",
"SPACEPICURL": null,
"PLATENOPICURL": null,
"GETTIME": 1704684961032,
"INTIMEUTC": 1703553154000,
"PARKMINUTES": 18863
}
]

Redemption​