Skip to main content

Posts

Showing posts from April 4, 2013

Getting Distance and Traveling Time (Bus Mode) Details from Google Maps in ASP.NET C# using Google Maps API XML & XPath Webservice

Description: 1. In Design View Coding, add the Javascript Code in Head section to make an integration with Google Maps API Script.     <script src="https://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"         type="text/javascript"></script> 2. Add the Source and Destination functions inside script tags, which is indicating the locations function Source() {             try {                 var input = document.getElementById('TextBox1');                 var autocomplete = new google.maps.places.Autocomplete(input);                 autocomplete.setTypes('changetype-geocode');             }             catch (err) {                 //...

Show your Current Location in Google Maps using ASP.NET C# website and Google Maps API

Descriptions: Add this script tag inside <Head> section " <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyByJmQq7PkPaznZUFsH7AesFNUz82U8iOc&sensor=false"> </script> " Inside this Script add your own Key value  [ key=AIzaSyByJmQq7PkPaznZUFsH7AesFNUz82U8iOc]   from Google Code  https://code.google.com/apis/console/ 1. Getting User Location function in Javascript coding        function success(position) {         var latitude = position.coords.latitude;         var longitude = position.coords.longitude;         var city = position.coords.locality;         var myLatlng = new google.maps.LatLng(latitude, longitude);         var myOptions = {             center: myLatlng,             zoom: 12,    ...