タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

googlemapsに関するkamosakaのブックマーク (1)

  • ある地点の標高を取得する。

    Google Maps API V3で、google.maps.ElevationServiceクラスを使ってみるサンプルプログラム。ある特定の地点の緯度経度から標高を取得します。プログラムに興味はなく、地図上で調べたいだけの場合は緯度・経度・住所・標高を取得するを。 function getElevation(latlng) { // 要素が1つでも配列に…。 var locations = [latlng]; // ElevationServiceのコンストラクタ var elevation = new google.maps.ElevationService(); // リクエストを発行 elevation.getElevationForLocations({ locations: locations }, function(results, status) { if (status

  • 1