3DStreet / 3dstreet

🚲🚢🚌 Web-based 3D visualization of streets using A-Frame
https://3dstreet.app
Other
249 stars 30 forks source link

starter doc for integration with other systems #460

Open kfarr opened 5 months ago

kfarr commented 5 months ago

Currently 3DStreet can create a new scene using a JSON representation of a "right of way" of street segments from left to right generated by the Streetmix API response, such as: https://streetmix.net/api/v1/streets/763d8b20-e519-11eb-9f95-39e599c09049

As a developer of a platform similar to but different than Streetmix, I would like to be able to export scenes from my application into 3DStreet for the creation of 3D scenes and plan view images.

This doc could include might include:

kfarr commented 5 months ago

Thinking through some of the needs for StreetPlan and how they could do a step by step approach to integrate with 3DStreet:

QA:

What is example of the simplest JSON that is compliant (can be parsed by) 3DStreet:

Example with 1 segment (modified from this streetmix API response):


{
  "name": "example",
  "data": {
    "street": {
      "segments": [
        {
          "type": "sidewalk-tree",
          "variantString": "",
          "width": 10,
        }
      ],
    }
  },
}

Example with 2 segments:

{
  "name": "example",
  "data": {
    "street": {
      "segments": [
        {
          "type": "sidewalk-tree",
          "variantString": "",
          "width": 10,
        },
        {
          "type": "drive-lane",
          "variantString": "",
          "width": 10,
        }
      ],
    }
  },
}