Php InvalidValueError:在属性latLng:不是latLng或LatLngLiteral:不是对象中

Php InvalidValueError:在属性latLng:不是latLng或LatLngLiteral:不是对象中,php,google-maps,reverse-geocoding,Php,Google Maps,Reverse Geocoding,我在我的php页面中有一个方向服务,我从另一个php页面获取目标latlng值 var dest='<?php echo $dest;?>'; 但它并没有采用错误的值: InvalidValueError: in property latLng: not a LatLng or LatLngLiteral: not an Object 我使用alert()测试了dest的值,它显示正确,但我不知道为什么它不接受Geocoder()请参考:dest的值是多少?听起来这不是一个拉丁语

我在我的php页面中有一个方向服务,我从另一个php页面获取目标latlng值

var dest='<?php echo $dest;?>';
但它并没有采用错误的值:

InvalidValueError: in property latLng: not a LatLng or LatLngLiteral: not an Object

我使用
alert()
测试了dest的值,它显示正确,但我不知道为什么它不接受
Geocoder()

请参考:dest的值是多少?听起来这不是一个拉丁语或拉丁语。请提供一个例子来说明这个问题。
dest
是我从另一个php文件的锚标记传递的latlng值
InvalidValueError: in property latLng: not a LatLng or LatLngLiteral: not an Object