• 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

Inserting Country Selection into MySQL PHP [duplicate]

Split a string array into pieces

PHP SoapClient: set a namespace without prefix

How to convert time from one timezone to another in PHP

Artisan, creating tables in database

How to identify whether webp image is static or animated?

How to redirect to another page and call a Function there on Angular ng-click

Laravel php artisan serve to mimic HTTPS

GRPC installed successfully on ubuntu but php is looking for it in another folder

How to create laravel storage symbolic link for production or sub domain system?

Custom post type single page not working

java URL working on browser but not in client program

"cannot list resources" error from WooCommerce REST API

Docker image build with PHP zip extension shows "bundled libzip is deprecated" warning

Sum array values of a column within each column of an array with 3 levels

About Contact Privacy policy Terms and conditions