• 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

Laravel SQL query midnight time not showing

Display specific shipping method if woocommerce product has specific acf field value

WordPress Subquery returns more than 1 row on SELECT

disable two buttons after clicking another button

Display Link Title Instead of URL in XSL

Laravel unique validation on multiple columns

Only on Firefox "Loading failed for the <script> with source"

How to convert time from one timezone to another in PHP

Why is this PHP array not the same?

How to put php code inside opening and closing shortcodes

PHP sort array of objects by two properties

How to add automatically collapse/expand in content wordpress (single.php)?

Maatwebsite Excel 3.1 : how do I skip duplicate data when imported?

PHPUnit (Phar) Fatal Error Only When Test Fails

PHPSpreadsheet - How Do I Use Auto Migration Tool

About Contact Privacy policy Terms and conditions