Skip to content

bng2latlong API

by getthedata.com

No authHTTPSCORSGeocoding
Open documentation ↗

Overview

Convert British OSGB36 easting and northing (British National Grid) to WGS84 latitude and longitude

bng2latlong is a geocoding API from getthedata.com. It needs no API key. It is served over HTTPS and allows browser requests (CORS). Its OpenAPI description documents 1 endpoints.

At a glance

Authentication
No auth
HTTPS
Yes
CORS
Yes
Category
Geocoding
Base URL
https://api.getthedata.com
Version
1.0
Endpoints
1
Spec updated
2021-06-21

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://api.getthedata.com/bng2latlong/EASTING/NORTHING" \
  -H "Accept: application/json"
JavaScript
const response = await fetch("https://api.getthedata.com/bng2latlong/EASTING/NORTHING", {
  method: "GET",
  headers: {
    "Accept": "application/json",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://api.getthedata.com/bng2latlong/EASTING/NORTHING",
    headers={
    "Accept": "application/json",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/bng2latlong/{easting}/{northing}Returns latitude and longitude for the given easting and northing.

Questions

Does the bng2latlong API need an API key?

No. The bng2latlong API can be called without an API key or sign-up, which makes it handy for prototypes and front-end demos.

Can I call the bng2latlong API from the browser?

Yes. The bng2latlong API sends CORS headers, so a web page can call it directly with fetch().

Does the bng2latlong API support HTTPS?

Yes, the bng2latlong API is served over HTTPS.

How many endpoints does the bng2latlong API have?

Its OpenAPI description lists 1 endpoint in version 1.0. All of them are shown on this page.

What are alternatives to the bng2latlong API?

Other Geocoding APIs include Bing Maps, ip-api, OpenStreetMap, GeographQL, IP Address Details.

Compare alternatives →

Listed from public-apis (MIT), public-apis database (MIT), Free Public APIs, APIs.guru (CC0).