Skip to content

feat: include iso3 in the country geometry response - #22

Merged
ranjan-stha merged 1 commit into
mainfrom
feat/add-iso3-in-country-geo-response
Sep 7, 2026
Merged

feat: include iso3 in the country geometry response#22
ranjan-stha merged 1 commit into
mainfrom
feat/add-iso3-in-country-geo-response

Conversation

@Rup-Narayan-Rajbanshi

Copy link
Copy Markdown
Contributor

Changes

  • include iso3 in the country geometry response

@Rup-Narayan-Rajbanshi
Rup-Narayan-Rajbanshi marked this pull request as ready for review September 4, 2026 11:26

@ranjan-stha ranjan-stha left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. There is a small improvement that can be done. Check it.

Comment thread geocoding.py Outdated
Comment on lines +80 to +81
properties: dict[str, typing.Any] = feature["properties"]
if properties["name"].lower().strip() == country_name:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
properties: dict[str, typing.Any] = feature["properties"]
if properties["name"].lower().strip() == country_name:
properties: dict[str, typing.Any] = feature.get("properties")
if properties and properties.get("name", "").lower().strip() == country_name:

@Rup-Narayan-Rajbanshi
Rup-Narayan-Rajbanshi force-pushed the feat/add-iso3-in-country-geo-response branch from e233a48 to 4ecdf52 Compare September 7, 2026 04:56
@ranjan-stha
ranjan-stha merged commit 8c43f51 into main Sep 7, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants