---
title: "Discussion on \"Location-aware ranking without a geolocation API: a local IP database in about 100 lines\" | Hashnode"
description: "Discussion on \"Location-aware ranking without a geolocation API: a local IP database in about 100 lines\". We needed a country code on the hot path of a listing page. A downloaded .mmdb file, a hot reload, an atomic monthly refresh and a clear rule for the unknown case did the job."
url: "https://hashnode.com/posts/geoip-without-an-api/6b1465af8d083dcd34f97248"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Location-aware ranking without a geolocation API: a local IP database in about 100 lines](https://spinhire.hashnode.dev/geoip-without-an-api?utm_source=hashnode&utm_medium=feed)

We needed a country code on the hot path of a listing page. A downloaded .mmdb file, a hot reload, an atomic monthly refresh and a clear rule for the unknown case did the job.

1h ago · 7 min read · spinhire.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#backend](https://hashnode.com/tag/backend)
-   [#fastapi](https://hashnode.com/tag/fastapi)
-   [#performance](https://hashnode.com/tag/performance)

## Written by

[SpinHire](https://hashnode.com/@spinhire)

@spinhire · Nicosia, Cyprus

  
[View profile](https://hashnode.com/@spinhire)

Open-data job board for iGaming: 6,600+ live roles, salary benchmarks and a free public jobs API.

SpinHire (spinhire.io) is a job board built only for the iGaming industry: casino, sports betting, game studios, affiliates, payments and compliance. We index 6,600+ live roles from 430+ companies every 6 hours and keep the data open: a public jobs API without a key (CC BY 4.0), XML and RSS feeds, and an MCP server for AI assistants. Here we write about building that index, iGaming tech careers and developer salaries.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
