Closed
Bug 1967617
Opened 6 months ago
Closed 6 months ago
Replace individual `Geoname::admin{level}_code` properties with one `admin_division_codes` map
Categories
(Application Services :: Suggest, task, P1)
Application Services
Suggest
Tracking
(firefox140 fixed)
RESOLVED
FIXED
140 Branch
| Tracking | Status | |
|---|---|---|
| firefox140 | --- | fixed |
People
(Reporter: adw, Assigned: adw)
References
Details
(Whiteboard: [sng])
Attachments
(1 file)
I'd like to replace the individual Geoname::admin{level}_code properties with a single admin_division_codes map. A few reasons:
- I'm working on another patch that adds a way for consumers to fetch localized/alternate names for geonames, including alternates for a geoname's admin divisions. I'm introducing another struct for that, and I don't want to repeat
admin{level}_namefor each level in that struct. - I like the idea of not baking the max number of levels into the public API.
- Not a big deal, but using a map would be similar to the object that AccuWeather returns for locations, although it returns an array of objects instead of one object.
Updated•6 months ago
|
Comment 1•6 months ago
|
||
Comment 2•6 months ago
|
||
Authored by https://github.com/0c0w3
https://github.com/mozilla/application-services/commit/1362582f152d3f97fd15b5ce8e5bcbfbc02e5abe
[main] Bug 1967617 - Replace individual Geoname::admin{level}_code properties with one admin_division_codes map
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Flags: qe-verify+
Resolution: --- → FIXED
| Assignee | ||
Updated•6 months ago
|
Target Milestone: --- → 140 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•