Posts

Showing posts from October 5, 2013

CALCULATING DISTANCE BETWEEN TWO PLACES ASP.NET

Calculating distance between two places made easy by GOOGLE MAP's DISTANCE MATRIX .  Google Map Matrix is an opensource api which will return Json & Xml as responces for its each request. Here we can get google map search suggestions too using google map's javascript api.  By this the text box you enter for desired place will show you google map's search suggestions. Let go to code. Html in aspx file: <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server">     <title>Google Maps</title>     <script src="https://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"         type="text/javascript"></script>     <script type="text/javascript">         //for getting origin autocomplete google map results         function OrginAutoComplete() {             try {                 var input = document.getElementById('TextBox