PHP code example of creof / geo-parser
1. Go to this page and download the library: Download creof/geo-parser library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
creof / geo-parser example snippets
$input = '79°56′55″W, 40°26′46″N';
$parser = new Parser($input);
$value = $parser->parse();
$input1 = '56.242 E';
$input2 = '40:26:46 S';
$parser = new Parser();
$value1 = $parser->parse($input1);
$value2 = $parser->parse($input2);