Posts

Find Distance Between two Addresses using Google API and PHP

Image
Find Distance Between two Addresses using Google API and PHP
In this article you are going to learn how you can find distance between two addresses. We are going to use google map api and PHP to accomplish this task. The Module we are going to develop here is basically an API provided by Google itself. This API can measure distance between two locations as well as Travel Time. The format for origin location and destination location could be one of the following: place name (e.g. Bhopal,India)ZIP code (e.g. 462016)latitude/longitude coordinates (e.g. 23.77xxx, 77.30xxx) to know more about permissible formats please visit googl’s official documentation page. Find Distance Between two AddressesStep 1:- Get an google’s API Key from here. click on GET A KEY button now click on +create a new project and enter your project name then click on ENABLE API button then after you are finally prompted to a popup window containing you API KEY. Step 2: source code
<!DOCTYPE html>

CodeIgniter Pagination With Bootstrap

Image
CodeIgniter Pagination With Bootstrap
Most of the time in the web application development, we have to show a large amount of data to the users. To show a large amount of data at once decrease the performance of our web application and we definitely want to avoid such problems in our web application.So at this time pagination plays a vital role to improve the performance of our web application. In this tutorial, we are going to learn how to use CodeIgniter pagination class in our web application. Here we are going to use PHP CodeIgniter framework for our backend and Twitter Bootstrap framework for our front end, So it is necessary to have the basic idea of these two frameworks. Get Started Codeigniter is a very famous PHP framework due to his large and easy to use libraries. Codeigniter pagination is one such library which is very helpful if we have to show a large amount of data to the users. Codeigniter pagination library breaks the data into the set of numbered links which allows us…