- https://en.wikipedia.org/wiki/Great-circle_distance#Formulas
- http://www.geodatasource.com/developers/php
- http://www.codexworld.com/distance-between-two-addresses-google-maps-api-php/
- https://stackoverflow.com/questions/10053358/measuring-the-distance-between-two-coordinates-in-php
Source: https://github.com/bcit-ci/CodeIgniter/wiki/Compress-HTML-output
To remove useless whitespace from generated HTML, except for Javascript see [Regex Source] or just replace the $re
value:
$re = '%# Collapse ws everywhere but in blacklisted elements.
(?> # Match all whitespaces other than single space.
[^\S ]\s* # Either one [\t\r\n\f\v] and zero or more ws,
| \s{2,} # or two or more consecutive-any-whitespace.
) # Note: The remaining regex consumes no text at all...
A Pen by Bradley Treweek on CodePen.