Skip to main content

Boxes'n'Lines Geolocation API

A high-performance geolocation API. Determine which country or subdivision a GPS coordinate falls in.

What is Boxes'n'Lines?

Boxes'n'Lines is a high-performance geolocation API that answers simple geographic questions:

  • Which country is this coordinate in? Returns an ISO 3166-1 alpha-3 code (e.g., USA, BRA, JPN)
  • Which subdivision (state/province) is this coordinate in? Returns an ISO 3166-2 code (e.g., US-NY, BR-SP)
  • Is this coordinate inside a specific country or subdivision? Returns a simple true or false

Why Boxes'n'Lines?

  • Speed: Processing time under 10ms
  • Simplicity: Clean, minimal responses. No unnecessary data
  • Lightweight: A country lookup returns just 3 characters. A yes/no check returns 1 bit
  • Reliable: Built on Natural Earth data with global coverage

Next Steps