Coder Social home page Coder Social logo

Comments (3)

sankichi92 avatar sankichi92 commented on June 3, 2024

related #26

from shikuchoson-hazardmap-template.

sankichi92 avatar sankichi92 commented on June 3, 2024

Social Hack Day 36 議論メモ

with @hwakimoto @ei-blue @YutoShiota

課題

fetch-city-osm.js の上記の箇所が問題。

そのため、比企郡や上京区は現在のクエリでは取得できない。

また、「比企郡小川町」や「京都市上京区」は完全一致する地物(?)が OSM にないため、引っかからない。
組み合わせずに「比企郡」「小川町」「京都市」「上京区」といった単位でクエリする必要がある。

解決案

  • admin_level の指定をなくす
    • もともと想定外の事態をなくすために導入していたが、むしろこれが問題になっているので必要なさそう
  • 「比企郡小川町」や「京都市上京区」といった入力そのものに対応するのではなく、ドキュメントでカバーする
    • 直感としては上記を入力したくなるが、パース等で対応するのが困難なため

from shikuchoson-hazardmap-template.

sankichi92 avatar sankichi92 commented on June 3, 2024

#20 で OpenStreetMap の Overpass API ではなく、https://nlftp.mlit.go.jp/ksj/gml/datalist/KsjTmplt-N03-v3_0.html から作成した https://github.com/sankichi92/shikuchoson-boundaries を使用するようにしました。
これにより設定項目も以下のように少し厳密になったので、こちらクローズします。

// 都道府県名を設定してください。
"prefecture": "東京都",
// 対象が政令指定都市の区の場合は、政令指定都市の市名を設定してください。
// たとえば、京都市の場合は null を "京都市" に置き換えます。
// 半角のダブルクォーテーション(")で囲む必要がある点に注意してください。
"city": null,
// 市区町村名を設定してください。
// ただし、政令指定都市をここに設定することはできません。
// また、郡は不要です。"比企郡小川町" ではなく "小川町" としてください。
"shikuchoson": "八王子市",

from shikuchoson-hazardmap-template.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.