한 프로젝트에 업로드 된 모든 Geojson 파일을 조회하기 위해 다음과 같은 API를 사용합니다.
📍 GET /open-api/v1/map/project/{id}
Request Header
| Key | Value | Description |
|---|---|---|
| api-key | {YOUR_API_Key} |
Path Parameter
| Key | Value | Description |
|---|---|---|
| Project ID | {YOUR_Project_ID} | 찾고자하는 Project의 고유 ID |
Response Body
200
[
{
"floorId": 1,
"geoJson": {
"type": "FeatureCollection",
"features": [
{
"id": "a",
"type": "Feature",
"properties": {
"strokeWidth": null,
"fillColor": "#000000",
"fillOpacity": 0.1,
"name": "11",
"description": "description",
"id": "a",
"type": "room",
"opacity": 0.1,
"strokeColor": "#121212",
"floor": 1,
"strokeOpacity": 0.3
},
"geometry": {
"coordinates": [
[
[126.7435671459188, 37.664528736370684],
[126.74333966963383, 37.66419007191247],
[126.74286786740095, 37.66438865516686],
[126.74309534368592, 37.66472731871907],
[126.7435671459188, 37.664528736370684],
[126.7435671459188, 37.664528736370684]
]
],
"type": "Polygon"
}
},
{
"id": "2",
"type": "Feature",
"properties": {
"name": "qq",
"id": "2",
"type": "image",
"opacity": 0.1,
"floor": 1,
"url": "http"
},
"geometry": {
"coordinates": [
[
[126.7435671459188, 37.664528736370684],
[126.74333966963383, 37.66419007191247],
[126.74286786740095, 37.66438865516686],
[126.74309534368592, 37.66472731871907],
[126.7435671459188, 37.664528736370684],
[126.7435671459188, 37.664528736370684]
]
],
"type": "Polygon"
}
}
]
}
},
{
"floorId": 2,
"geoJson": {
"type": "FeatureCollection",
"features": [
{
"id": "d",
"type": "Feature",
"properties": {
"strokeWidth": null,
"fillColor": "#000000",
"fillOpacity": 0.1,
"name": "11",
"description": "description",
"id": "d",
"type": "room",
"opacity": 0.1,
"strokeColor": "#121212",
"floor": 2,
"strokeOpacity": 0.3
},
"geometry": {
"coordinates": [
[
[126.7435671459188, 37.664528736370684],
[126.74333966963383, 37.66419007191247],
[126.74286786740095, 37.66438865516686],
[126.74309534368592, 37.66472731871907],
[126.7435671459188, 37.664528736370684],
[126.7435671459188, 37.664528736370684]
]
],
"type": "Polygon"
}
},
{
"id": "a3",
"type": "Feature",
"properties": {
"color": "#030303",
"size": 3.0,
"name": "name",
"icon": "!",
"description": "description",
"id": "a3",
"type": "general",
"floor": 2
},
"geometry": {
"coordinates": [126.745401554, 37.669477576],
"type": "Point"
}
}
]
}
}
]
400
{
"error": "Invalid request"
}
cURL
curl --location 'https://space.api-freegrow.com//open-api/v1/map/project/1'
--header 'api-key: {YOUR_API_KEY}'
관련 안내서
- API 공통 가이드
- Place UID List 호출
- Place UID별 Details 호출
- Place UID별 Details 수정
- 층 별 geojson 호출
- Place별 map color 수정
서비스 사용법이 궁금하다면 Growspace Studio 가이드 바로가기
