Google Static Maps から返された衛星画像の幅と高さ (度単位) を計算しようとしています。
私の問題:衛星画像の高さ (度) を正しく計算しているとは思いません。
この衛星画像の高さを計算する方法を知っていますか?
http://maps.googleapis.com/maps/api/staticmap?center=-32,151&zoom=14&size=400x400&sensor=true
次のコードは、衛星画像の幅を度単位で正しく計算できますが、高さは正しく計算できません。
var meshWidthDeg = (imgWidth/256f)*(360f / Math.Pow(2f,zoom));
var meshHeightDeg = (imgHeight/256f)*(360f / Math.Pow(2f,zoom));
var elevArea = new Array(lat - (meshWidthDeg/2), lon - (meshHeightDeg/2),
meshWidthDeg, meshHeightDeg);