papercups-io / papercups

Open-source live customer chat
https://app.papercups.io/demo
MIT License
5.73k stars 509 forks source link

Geocoding Customer IP address -> Country / City #202

Closed henrymori closed 3 years ago

henrymori commented 4 years ago

Following up on https://github.com/papercups-io/papercups/issues/57 which fixes capturing the end-customer's IP address correctly:

Now that the customer's IP address is being captured correctly, it's possible to do some geocoding to find out the country & city of the customer and store that data on the customer record.

A few ideas I wanted to kick around regarding implementation:

Option 1 (self-host free MaxMind data + ETS or Redis Cache):

Option 2 (call an external service):

Other considerations:

henrymori commented 4 years ago

@reichert621 ^^ As discussed, some thoughts on geocoding implementations 👍

henrymori commented 4 years ago

Consolidated discussion from the Slack thread (https://papercups-io.slack.com/archives/C0189MJHKMJ/p1599057225003600?thread_ts=1599005083.000900&cid=C0189MJHKMJ):

cheeseblubber commented 3 years ago

Closing this issue. Using browser information is good enough