Project geojson の呼び出し
1つのプロジェクトにアップロードされたすべての Geojson ファイルを照会するには、次の API を使用します。
1つのプロジェクトにアップロードされたすべての 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 |
GeoJSON API の Response Body:プロジェクト全体の GeoJSON レスポンス例
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": [
[
[0.0435671459188, 0.064528736370684],
[0.04333966963383, 0.06419007191247],
[0.04286786740095, 0.06438865516686],
[0.04309534368592, 0.06472731871907],
[0.0435671459188, 0.064528736370684],
[0.0435671459188, 0.064528736370684]
]
],
"type": "Polygon"
}
},
{
"id": "2",
"type": "Feature",
"properties": {
"name": "qq",
"id": "2",
"type": "image",
"opacity": 0.1,
"floor": 1,
"url": "http"
},
"geometry": {
"coordinates": [
[
[0.0435671459188, 0.064528736370684],
[0.04333966963383, 0.06419007191247],
[0.04286786740095, 0.06438865516686],
[0.04309534368592, 0.06472731871907],
[0.0435671459188, 0.064528736370684],
[0.0435671459188, 0.064528736370684]
]
],
"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": [
[
[0.0435671459188, 0.064528736370684],
[0.04333966963383, 0.06419007191247],
[0.04286786740095, 0.06438865516686],
[0.04309534368592, 0.06472731871907],
[0.0435671459188, 0.064528736370684],
[0.0435671459188, 0.064528736370684]
]
],
"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": [0.045401554, 0.069477576],
"type": "Point"
}
}
]
}
}
]
400
{
"error": "Invalid request"
}
GeoJSON API の cURL リクエスト例
curl --location 'https://space.api-freegrow.com//open-api/v1/map/project/1'
--header 'api-key: {YOUR_API_KEY}'
関連ガイド
- GrowStudio API 共通ガイド
- Place UID List の呼び出し
- Place UID ごとの Details の呼び出し
- Place UID ごとの Details の更新
- フロアごとの geojson の呼び出し
- Place ごとの map color の更新
サービスの使い方については、GrowStudio ガイドをこちらからご覧ください。