{"id":54,"date":"2013-01-23T09:32:15","date_gmt":"2013-01-23T09:32:15","guid":{"rendered":"http:\/\/drive.cro.ma\/mission\/?page_id=54"},"modified":"2013-01-23T09:32:15","modified_gmt":"2013-01-23T09:32:15","slug":"driving-directions","status":"publish","type":"page","link":"http:\/\/livinggospel.com.ng\/index.php\/driving-directions\/","title":{"rendered":"Driving Directions"},"content":{"rendered":"<div class=\"six column\"><ul class=\"cro_directionscal\">\n                    <li class=\"dir-label\">To:<\/li>\n                    <li><strong>901-947 South Ripple Creek Drive, Houston, TX 77057, USA<\/strong><\/li>\n                    <li class=\"dir-label\">From:<\/li>\n                    <li><input id=\"from-input\" type=text value=\"\"\/><\/li>\n                     <li><input id=\"to-input\" type=hidden value=\"901-947 South Ripple Creek Drive, Houston, TX 77057, USA\"\/><\/li>\n                    <li><input id=\"driveclick\" class=\"\" onclick=\"Demo.getDirections();\" type=button value=\"Calculate:\"\/><\/li>\n                <\/ul>\n                <p>The driving directions are interactive. Click on any bold text for further explanation of the route.<\/p>\n                <div id=\"dir-container\"><\/div><\/div><div class=\"six column\"><div id=\"map-container\"><\/div><\/div><div class=\"clearfix\"><\/div>\n        <script type=\"text\/javascript\">\n                    var Demo = {\n                        mapContainer: document.getElementById(\"map-container\"),\n                        dirContainer: document.getElementById(\"dir-container\"),\n                        fromInput: document.getElementById(\"from-input\"),\n                        toInput: document.getElementById(\"to-input\"),\n\n                        dirService: new google.maps.DirectionsService(),\n                        dirRenderer: new google.maps.DirectionsRenderer(),\n                        map: null,\n\n                        showDirections: function(dirResult, dirStatus) {\n                            if (dirStatus != google.maps.DirectionsStatus.OK) {\n                                alert(\"Directions failed: \" + dirStatus);\n                                return;\n                            }\n\n                            Demo.dirRenderer.setMap(Demo.map);\n                             Demo.dirRenderer.setPanel(Demo.dirContainer);\n                             Demo.dirRenderer.setDirections(dirResult);\n                        },\n\n                        getDirections: function() {\n                            var fromStr = Demo.fromInput.value;\n                            var toStr = Demo.toInput.value;\n                            var dirRequest = {\n                                origin: fromStr,\n                                destination: toStr,\n                                travelMode: google.maps.DirectionsTravelMode.DRIVING,\n                                unitSystem: google.maps.DirectionsUnitSystem.METRIC,\n                                provideRouteAlternatives: true\n                            };\n                            Demo.dirService.route(dirRequest, Demo.showDirections);\n                        },\n\n                        init: function() {\n                            var image = \"http:\/\/livinggospel.com.ng\/wp-content\/themes\/mission-funding-and-commerce-for-churches\/public\/styles\/images\/mpmark.png\";\n                            var latLng = new google.maps.LatLng(29.757260875995787, -95.49716603041078);\n                                Demo.map = new google.maps.Map(Demo.mapContainer, {\n                                zoom: 16,\n                                center: latLng,\n                                mapTypeId: google.maps.MapTypeId.ROADMAP\n                            });\n                                    \n                        var marker = new google.maps.Marker({\n                            position: latLng, \n                            map: Demo.map,\n                            icon: image\n                        });  \n                     }                               \n                };\n                google.maps.event.addDomListener(window, \"load\", Demo.init);\n            <\/script>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"http:\/\/livinggospel.com.ng\/index.php\/wp-json\/wp\/v2\/pages\/54"}],"collection":[{"href":"http:\/\/livinggospel.com.ng\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/livinggospel.com.ng\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/livinggospel.com.ng\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/livinggospel.com.ng\/index.php\/wp-json\/wp\/v2\/comments?post=54"}],"version-history":[{"count":0,"href":"http:\/\/livinggospel.com.ng\/index.php\/wp-json\/wp\/v2\/pages\/54\/revisions"}],"wp:attachment":[{"href":"http:\/\/livinggospel.com.ng\/index.php\/wp-json\/wp\/v2\/media?parent=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}