• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Get lat/lon from google maps url ftid (hex)

phpandroidgoogle-mapslocationhex


PHP Snippet 1:

!1s0x6ad63fbf56e24c27:0xe665b3308d32f379

PHP Snippet 2:

0xe665b3308d32f379  ---hex-to-dec--->  16601872622479930233

PHP Snippet 3:

function ftid_to_latlong($ftid)
{
    $fetch = curl_request("https://www.google.com/maps?ftid=$ftid");
    preg_match("/\"$ftid\",.*?(\d+\.\d+),(\d+\.\d+)/", $fetch, $geo);
    return [$geo[1], $geo[2]];
}

Related Snippets

How to get result of the formula on import xlsx with maatwebsite using Laravel? I get formula and not value of the formula

Laravel 8: Array to string conversion while calling route:list

How to test laravel controller method?

Fatal error: Uncaught mysqli_sql_exception: Unknown database 'test' in ... (How do I fix that? Using PHP)

how to search for a file with php

how to loop through json response data using ajax jquery?

How to properly set "0000-00-00 00:00:00" as a DateTime in PHP

How to send upload image through email

How to use $this->session->set_userdata in codeigniter

Need to display only array value in JSON output

Combine array with same value and add other [duplicate]

Laravel excel maatwebsite 3.1 import, date column in excel cell returns as unknown format number. How to solve this?

Yii2 redirecting to previous page after login

zsh: command not found: php

PHP - Check if string contains words longer than 4 characters, then include "+ *", and for those shorter than 4 characters include only "*"

About Contact Privacy policy Terms and conditions