ユーザーアドレスのオートコンプリート機能にGoogle APIを使用しています。そして、その正常に動作します。しかし今、住所のオートコンプリート機能に Nokia OVI Map を使用したいと考えています。
同じものを実装する方法を教えてください。
以下のコードを使用しています
<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>
このコードで緯度、経度を取得する方法
ありがとうシヴァム