Google地方可以协调更改密钥 [英] Google Places coordinates changing keys
本文介绍了Google地方可以协调更改密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我为我的离子APP使用Google地方API。它之前给出的坐标数据模型是
{A:12.879721,F:121.77401699999996}
$
{G:12.879721,K:121.77401699999996}
如何解决此问题
$不要使用未记录的属性(它们随API的每个发行版都会改变,或者可以),使用记录的方法(.lat() & .lng())I'm using google places API for my ionic APP. The the data model of coordinates it gives before was
{A: 12.879721, F: 121.77401699999996}
now it's like this:
{G: 12.879721, K: 121.77401699999996}
How do I resolve this issue
解决方案
Don't use undocumented properties (they change, or can, with every release of the API), use the documented methods (.lat() & .lng())
这篇关于Google地方可以协调更改密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文