bng2latlong
getthedata · Location
Convert an OSGB36 easting and northing (British National Grid) to WGS84 latitude and longitude.
Authentication
Sample Requests
Takes an OSGB36 easting and northing (British National Grid) and returns the geographically equivalent WGS84 latitude and longitude. #### A successful request returns the following fields: * status - this will be `ok` * easting - the easting provided in the request * northing - the northing provided
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/getthedata.com/bng2latlong/1.0/bng2latlong/{easting}/{northing}"import requests
response = requests.get(
"https://api.apis.guru/v2/specs/getthedata.com/bng2latlong/1.0/bng2latlong/{easting}/{northing}",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/getthedata.com/bng2latlong/1.0/bng2latlong/{easting}/{northing}';
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/getthedata.com/bng2latlong/1.0/bng2latlong/{easting}/{northing}"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/getthedata.com/bng2latlong/1.0/bng2latlong/{easting}/{northing}")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/getthedata.com/bng2latlong/1.0/bng2latlong/{easting}/{northing}";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with bng2latlong?
bng2latlong is a Location API. Developers commonly use location APIs for:
- tracking assets and vehicles in real time
- building delivery and logistics apps
- finding nearby businesses or services
- geo-fencing and location-based notifications
- address validation and autocomplete
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. bng2latlong is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide