3
我正在使用谷歌API來自動完成用戶地址功能。它的工作正常。 但現在我想使用諾基亞OVI地圖進行地址自動完成功能。諾基亞OVI地圖自動完成功能
請幫助我如何實現相同。
我使用下面的代碼
<div id="customSearchBox" class="main-search">
<span class ="caption">Search For Places:</span>
<div module="SearchBox">
<input rel="searchbox-input" class="search-box-bckgrnd" type="text" />
<div rel="searchbox-list" class="search-list"></div>
</div>
</div>
<script>
var customSearchBox = new nokia.places.widgets.SearchBox({
targetNode: 'customSearchBox',
template: 'customSearchBox',
searchCenter: function() {
return {
latitude: 52.516274,
longitude: 13.377678
}
},
onResults: function (data) {
//here you have access to data
alert(data);
}
});
</script>
如何獲得緯度,經度在此代碼
感謝 Shivam