Developers often needs to get the latitude and longitude of a particular place. This function takes an address as a parameter, and will return an array of data containing both latitude and longitude. I have used Google Maps API.

Code: