Category Archives: PHP

Php Function To Find Distance Between Two Coordinates

Print Friendly

Simple PHP function to find distance between 02 coordinates.

Posted in PHP, Programming | Tagged , , , , , , , , | Leave a comment

PHP Code Sample : Convert GPS / NMEA Lat Long to Decimal Degrees

Print Friendly

This piece of code converts NMEA/GPS Lat -Long to Decimal Degrees. Code comments are self explanatory. The code is not graceful, but it works. function degree2decimal($deg_coord){ //reference http://www.directionsmag.com/site/latlong-converter //GPS/NMEA fixes are in Degree Minutes.m format //for Google maps we need … Continue reading

Posted in PHP, Programming | Tagged | Leave a comment

Decode AIS String using PHP

Print Friendly

This is for all who may want to decode an AIS String but never knew how to do. For all who don’t know what is AIS.. try this link http://www.imo.org/Safety/mainframe.asp?topic_id=754 http://en.wikipedia.org/wiki/Automatic_ … ion_System this code is tested for type 1 … Continue reading

Posted in PHP, Programming | Tagged | 2 Comments