Google Maps API v3 を使用して、ユーザーが定義した出発点から私の所有地までの道順を表示しています。
これは、エンドポイントの精度を除いて、技術的には問題なく機能しています。所有地の経度/緯度を正確な位置に定義しましたが、道順はまだ約 100 メートル先の通りに案内されます。
方向を強制的に正確なポイントに導く方法はありますか?
それが役立つ場合に備えて、これが私のコードです...
function getDirections(x, y) {
            $("#directionsPanel").html("");
            var directionsService = new google.maps.DirectionsService();
            var directionsDisplay = new google.maps.DirectionsRenderer();
            var myOptions = {
                zoom: 10,
                mapTypeId: google.maps.MapTypeId.ROADMAP,
                scrollwheel: false
            }
            var map = new google.maps.Map(document.getElementById("map"), myOptions);
            directionsDisplay.setPanel(document.getElementById('directionsPanel'));
            directionsDisplay.setMap(map);
            var request = {
                origin: x,
                destination: $('.lat').text() + ',' + $('.lng').text() ,
                travelMode: google.maps.DirectionsTravelMode.DRIVING,
                unitSystem: google.maps.UnitSystem.IMPERIAL,
                provideRouteAlternatives: true,
                region: "GB"
            };
            directionsService.route(request, function (response, status) {
                    directionsDisplay.setDirections(response);
                    $(".noValidRoute").hide();
            });
        }