如何获得给定此Google地方网址的地址和坐标? [英] How do I get the address and coordinates given this google place url?

查看:45
本文介绍了如何获得给定此Google地方网址的地址和坐标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

https://www.google.com/maps/place/@/data=!4m2!3m1!1s0x88c2cdd22ab04385:0xf12ec367be629fbc 如何获得给定此Google地方网址的地址和坐标?

解决方案

从这些相关问题的答案中:

  • https://www.google.com/maps/place/@/data=!4m2!3m1!1s0x88c2cdd22ab04385:0xf12ec367be629fbc How do I get the address and coordinates given this google place url?

    解决方案

    From the answer to these related questions:

    https://www.google.com/maps/place/@/data=
    !4m2
    !3m1
    !1s0x88c2cdd22ab04385:0xf12ec367be629fbc
    

    ftid is 0x88c2cdd22ab04385:0xf12ec367be629fbc

    There are no coordinates in the provided URL. That is only a ftid for Jimmy John's

    If you decode the URL retrieved from that redirected request:

    https://www.google.com/maps/place/Jimmy+John's/@27.9371703,-82.2956035,17z/data=!3m1!4b1!4m5!3m4!1s0x88c2cdd22ab04385:0xf12ec367be629fbc!8m2!3d27.9371703!4d-82.2934148

    you can get coordinates (note, they are not the coordinates after the @, they are decoded from the last two entries in the URL):

    27.9371703,-82.2934148

    fiddle showing location

    这篇关于如何获得给定此Google地方网址的地址和坐标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆