Skip to content

geojsonによる経路データの案 #17

@ryo-a

Description

@ryo-a

単純な2地点のルートですが、以下のようなプロトタイプを考えています

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {
        "name":"姪浜旅客待合所",
        "operator":"福岡市営渡船"
      },
      "geometry": {
        "type": "Point",
        "coordinates": [
          130.32671213150024,
          33.59750752830658
        ]
      }
    },
    {
      "type": "Feature",
      "properties": {
        "name":"能古旅客待合所",
        "operator":"福岡市営渡船"
      },
      "geometry": {
        "type": "Point",
        "coordinates": [
          130.31072616577148,
          33.61197456272932
        ]
      }
    },
    {
      "type": "Feature",
      "properties": {
        "route":"姪浜-能古線",
        "operator":"福岡市営渡船"
      },
      "geometry": {
        "type": "LineString",
        "coordinates": [
          [
            130.32673358917236,
            33.59750306003961
          ],
          [
            130.32522082328796,
            33.59777562390132
          ],
          [
            130.32531201839447,
            33.599268007480006
          ],
          [
            130.31263053417206,
            33.611143600525935
          ],
          [
            130.31097829341888,
            33.61064769991048
          ],
          [
            130.3105491399765,
            33.61149653706404
          ],
          [
            130.31071007251737,
            33.611987965279866
          ]
        ]
      }
    }
  ]
}

問題点

  • シンプルではあるが、geojsonの特性上pointとLineStringの紐づけができていない(区間的な運休などで路線図を表示できなくなる?)
    • 停留所~停留所、すなわち区間別にLineStringを格納するという手もあるが、容量は増大する

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions