Nasıl bu koordinatları Google Maps tarafından okunabilir koordinatları dönüştürebilirim?

3 Cevap php

Haritaya bir göz bu page koordinatları alın. Bu Vikipedi bağlantılı ve koordinatlar sorgu dizesi geçirilir. Bunun için gerçek açısından emin değilim ama nasıl koordinatlar dönüştürebilirim? Onlar şöyle:

37° 14′ 6″ N, 115° 48′ 40″ W

Ben onları bu gibi bakmak istiyorum:

37.235, -115.811111

, Google haritaları ile okunabilir bir biçimi olan, görüldüğü gibi this example.

Nasıl bu PHP yaparsınız, ve koordinat iki farklı türleri nelerdir denir?

3 Cevap

Orijinal formatı saat, dakika, saniye formatında. Ondalık dönüştürmek için, yapın:

D = + H + M/60 s/3600

Yani örnekte, 37,14,6 olur

Belirtildiği gibi, 37 + 14/60 + = 37,235 6/3600,.

If the latitude is N the result is positive, if S, negative. If the longitude is E the result is positive. If west the result is negative.

Here Sen neden bahsediyorsun ne yapar Javascript işlevidir.

This utility permits the user to convert latitude and longitude between decimal degrees and degrees, minutes, and seconds. For convenience, a link is included to the National Geodetic Survey's NADCON program, which allows conversions between the NAD83 / WGS84 coordinate system and the older NAD27 coordinate system. NAD27 coordinates are presently used for broadcast authorizations and applications.

This utility requires that Javascript be enabled to perform the calculations.

Umm Eğer söz sayfa zaten size WGS84 ve Enlem Boylam biçiminde koordinatlarını veriyor