【发布时间】:2014-12-29 07:14:30
【问题描述】:
我可以使用以下代码找到当前位置的时间戳。
navigator.geolocation.getCurrentPosition(函数(位置){
var timestamp=position.coords.timestamp;
});
但是,是否可以找到地址或城市的时间戳。我可以找到城市的经纬度,但找不到时间戳。
var geocoder = new google.maps.Geocoder();
geocoder.geocode({ 'address': "chennai" }, function (results, status) {
if (status == google.maps.GeocoderStatus.OK) {
var position= new google.maps.LatLng(results[0].geometry.location.lat(),
results[0].geometry.location.lng())
}
});
如何使用纬度和经度值查找地址的时间戳。
提前致谢
【问题讨论】:
-
您可以申请timezone-API