---
title: "Discussion on \"Generating random Latitude & Longitude pairs in the UK via SQL\" | Hashnode"
description: "Discussion on \"Generating random Latitude & Longitude pairs in the UK via SQL\". I recently needed test data consisting of many locations with latitude and longitude defined. They needed to be within the UK, but also needed to be different from each other so I could calculate distances between them. I needed them in a SQL Server ..."
url: "https://hashnode.com/posts/generating-random-latitude-longitude-pairs-in-the-uk-via-sql/677d6bb495561637952d1f8c"
---

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

Discussion

# [Generating random Latitude & Longitude pairs in the UK via SQL](https://techblog.timhilton.xyz/generating-random-latitude-longitude-pairs-in-the-uk-via-sql?utm_source=hashnode&utm_medium=feed)

I recently needed test data consisting of many locations with latitude and longitude defined. They needed to be within the UK, but also needed to be different from each other so I could calculate distances between them. I needed them in a SQL Server ...

Jan 7, 2025 · 1 min read · techblog.timhilton.xyz  
Updated Jan 13, 2025  
Read the article

-   [#sql](https://hashnode.com/tag/sql)
-   [#location](https://hashnode.com/tag/location)
-   [#latitude-and-longitude](https://hashnode.com/tag/latitude-and-longitude)

## Written by

[Tim Hilton](https://hashnode.com/@tjhilton)

@tjhilton

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
