Skip to content

read ip info from ip:geo db#1

Draft
meowsbits wants to merge 1 commit into
mainfrom
maxmind-geoip-db
Draft

read ip info from ip:geo db#1
meowsbits wants to merge 1 commit into
mainfrom
maxmind-geoip-db

Conversation

@meowsbits
Copy link
Copy Markdown
Contributor

This is sketch of using a static IP:Geo database as a first-use before falling back to an ip:geo service query.

I'm not sure this is actually functional, can't test without G_* google API keys set up and I got a redis port conflict on docker-compose up.

Docs for the MaxMind GeoIP DB are here https://github.com/maxmind/GeoIP2-node/blob/main/README.md#city-example.

Signed-off-by: meows <b5c6@protonmail.com>
@meowsbits meowsbits requested review from diega and ziogaschr November 30, 2023 15:47
@ziogaschr
Copy link
Copy Markdown
Contributor

Looks great @meowsbits. I will test it tomorrow and extract both methods into functions for more clarity on the try/catch.

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