Descubre nuestros Web Maintenance Plans
  +34 644 672 289 ¿Website down?   Contact  4.7 / 5

Other

Calculating the distance between two points using latitude and longitude

It’s very easy to calculate the distance between 2 points using latitude and longitude in Php.

Get code here:

DOWNLOAD PHP FUNCTION (TXT)

 

I’m using Haversine Formula (http://en.wikipedia.org/wiki/Haversine_formula), in a Php Function to calculate distance between 2 points, handle distance between latitude/longitude points.

If you are interested you can do the same directly with a Mysql Query.
 This SlideShare could help you optimize your queries, since make queries and manipulating coords are time consuming with big db’s. Geo Distance Search with MySQL

Doing some testing before coding anything http://www.movable-type.co.uk/scripts/latlong.html

    ¿How can we help you?

    We are at your service, please write us a message, we'll get back to you quickly.





    Workcation

    Muy profesionales. Resuelven rápido e informan en todo momento del estado del trabajo. 100% recomendado.

    Conchetta Alonso

    CEO at Workcation

    4.7/5 Leer opiniones sobre Php Ninja en Google reviews

    ¿Cómo podemos ayudarte?

    Solicitar Presupuesto Contratar plan Contacto

    +34 644 672 289 (Lu-Vi, Whatsapp 24h)

    Resultados

    What have our clients said?

    • 5 star review  We had a security problem in the company and we could not find a professional who would give us guarantees of results. We found this company by browsing the internet, and the service has been agile, decisive, and very comfortable. They care about us, there is no better I can say about them

      thumb nieves torres mon
      27/10/2020

      5 star review  Necesitaba hacer unos arreglos en mi página web que estaba bloqueada hace meses y necesitaba unos cambios estructurales, me sentí en todo momento super bien atendida, trato fenomenal, gran profesionalidad y soluciones rápidas, buena relación calidad / precio. Muy contenta y satisfecha! Repetiría sin dudar en caso de necesidad. Muy recomendable.

      thumb Valeria Murroni
      23/07/2021

      5 star review  Very good job! When they started to think that fixing our website was mission impossible we found PhpNinja, great professionals. Very good attention and service! Web ready!

      thumb Equànima Coaching Equinoteràpia Ecoturisme
      21/10/2020
    • 5 star review  Good treatment, speed, efficiency ... great professionals !!. We came from bad experiences with so-called experts, which only made us lose money and time. And instead, they have performed a Malware cleanup in record time for the dates that are. Of course, it has been a success to find such a serious and efficient company. Special mention to Marc, for his excellent customer service. We will repeat and recommend them. Greetings.

      thumb Clibema instaladores y lampistas
      27/12/2021

      5 star review  Unos grandísimos profesionales, he tenido varios problemas en nuestra web de empresa y lo han resuelto rápido, bien y ycon una excelente comunicación. Si vuelvo a tener problemas volveré. Un saludo cordial, Sergio

      thumb Joyería SergeLL
      31/08/2020

      5 star review  They work very well as web designers.

      thumb parloitaliano associazione culturale parloitaliano
      30/07/2021

    Calculating the distance between two points using latitude and longitude

    Te respondemos rápidamente. Sin compromiso

      Recibir asistencia
    Laura
    Available

    Php Ninja

    icono whatsapp programador web