0

我的 GPS 提供了这些坐标“0023 36.8620 S, W 0046 38.1003” 但是我不能把它们放在 Google Maps API 中似乎他不接受这种类型,有什么问题吗?他会接受吗?还是需要转换?我怎样才能转换?

https://maps.google.com.br/maps?q=0023+36.8620+S,+0046+38.1003+W

var coordenadas= [{
            "Latitude": "0023 30.1119 S",
            "Longitude": "0046 42.3806 W",
            "Velocidade": "0.00",
            "Data": "2013-04-29 20:05:09"
        }, {
            "Latitude": "0023 30.1672 S",
            "Longitude": "0046 42.4452 W",
            "Velocidade": "21.00",
            "Data": "2013-04-29 20:31:05"
        }, {
            "Latitude": "0023 31.6420 S",
            "Longitude": "0046 46.3419 W",
            "Velocidade": "0.00",
            "Data": "2013-04-29 20:45:01"
        }, {
            "Latitude": "0023 31.4505 S",
            "Longitude": "0046 46.1651 W",
            "Velocidade": "155.00",
            "Data": "2013-04-29 21:01:19"
        }, {
            "Latitude": "0023 36.6380 S",
            "Longitude": "0046 40.4935 W",
            "Velocidade": "299.00",
            "Data": "2013-04-29 21:15:05"
        }, {
            "Latitude": "0023 36.8620 S",
            "Longitude": "0046 38.1003 W",
            "Velocidade": "0.00",
            "Data": "2013-04-29 21:45:06"
        }
    ];


    var map = new google.maps.Map(document.getElementById('map_canvas'), {
        zoom: 13,
        center: new google.maps.LatLng(-23.5525, -46.638851),
        mapTypeId: google.maps.MapTypeId.ROADMAP
    });
    var infowindow = new google.maps.InfoWindow();
    var image = 'beachflag.png';
    $.each(coordenadas, function (i, items) {
        marker = new google.maps.Marker({
            position: new google.maps.LatLng(items.Latitude, items.Longitude),
            map: map,
            icon: image
        });
        google.maps.event.addListener(marker, 'click', (function (marker, i) {
            return function () {
                infowindow.setContent();
                infowindow.open(map, items.Data);
            }
        })(marker, i));

        console.log(items);
    });

对不起,我的英语太差了!

4

1 回答 1

0

谷歌地图使用十进制度 (WGS84)。

您的设备应该具有以这种格式显示的设置。

于 2013-04-30T09:05:31.587 回答