Attach StatCan geographies to geocode() / reverse_geocode() results
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu với geocode(), reverse_geocode(), vignette Querying NAR và phép join Addresses-to-Locations trên LOC_GUID. Xác định hình dạng API được đề xuất, các cột địa lý, cách xử lý các hàng không có ADDR_GUID và ngữ nghĩa của geom_source; được xem là hoàn tất khi giao diện được chọn gắn các kết quả địa lý đã được lập tài liệu mà không yêu cầu bên gọi tự viết phép join.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Split out of #1, which is closed: `Locations` is imported and carries `CSD_CODE`, `FED_CODE`/`FED_ENG_NAME`/`FED_FRE_NAME` and `ER_CODE`/`ER_ENG_NAME`/`ER_FRE_NAME`, joined to `Addresses` on `LOC_GUID`.
What is missing is a convenience layer. Today a user who wants the census subdivision or federal riding for a geocoded address has to know the schema and write the join themselves — the Querying NAR vignette shows how, but it is manual:
tbl(con, "Addresses") |>
left_join(tbl(con, "Locations") |> select(LOC_GUID, FED_ENG_NAME, ER_ENG_NAME),
by = "LOC_GUID")
Proposal: attach the geography for callers who never touch the database directly.
Open questions, roughly in the order they need answering:
- Shape. An argument on the existing functions (`geocode(geographies = TRUE)`, `reverse_geocode(geographies = ...)`) or a standalone verb (`nar_geographies(x, con)`) that takes a result and adds columns? A standalone verb composes better and keeps the two entry points from growing a third mode each.
- Which columns, and named how. All of CSD/FED/ER, or a selectable subset? NAR ships codes and both official-language names; returning nine columns by default is a lot.
- Rows with no `ADDR_GUID`. Interpolated and `bc_*` rows have no NAR record to join through, so the geography would have to come from the point rather than the key — a spatial lookup against something the package does not currently carry. Simplest first cut is to fill `NA` for those and document it; anything better needs boundary files.
- `geom_source`. A blockface-derived point can sit on the far side of a boundary from the building it stands for. Worth a note if the geography is ever derived spatially.
- Ngôn ngữ chính
- R
- Star
- 0
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của mountainMath/cangeocode
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
mountainMath/cangeocode#6 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
Address normalizationĐang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
mountainMath/cangeocode#3 · 1 bình luận ·
-
NAR apiĐang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
mountainMath/cangeocode#2 · 3 bình luận ·
Tất cả issue của mountainMath/cangeocode
Issue tương tự
-
Development of logger messagesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
epiverse-trace/epiparameter#526 ·
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 68/100
eirini-zormpa/hpc-intro#30 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
Temp-directory guard in schedule_diagnostics() never matches on macOS (/var vs /private/var)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
REditorSupport/languageserver#833 ·
Maintainer thường phản hồi trong vòng 1 ngày