PHP: Calculate the distance in miles between two locations (using latitude and longitude, or postcodes)

I have a MySQL database of UK locations, each with latitude and longitude values. I need a PHP function that takes two locations and calculates the distance between them in miles.

I have found a few functions on Google that do this, however they are inaccurate - **it is essential that the function provides accurate results**.

The database I have can be found here:

[url removed, login to view]

(it is the [url removed, login to view] file)


Habilidades: Engenharia, MySQL, PHP, Arquitetura de software, Teste de Software, Hospedagem Web, Gestão de Site , Teste de Website

Veja mais: php function , longitude, locations, latitude, distance calculate, article engineering, php mysql longitude, mysql distance, mysql longitude latitude, google distance, using miles, engineering article, calculate distance php, distance postcodes, php function google results, postcodes, php calculate distance longitude, php mysql calculate, results function php, php distance google, php calculate distance latitude longitude, latitude google, google calculate distance, distance zip, distance google

Acerca do Empregador:
( 41 comentários ) 7-15 Pink Lane, United Kingdom

ID do Projeto: #2953857

Concedido a:


See private message.

$7 USD em 1 dia
(3 Comentários)

2 freelancers estão ofertando em média $10 para esse trabalho


See private message.

$12.75 USD em 1 dia
(0 Comentários)