In this post we will discover the use of Google API to get the latitude and longitude by passing the address/location in PhoneGap application.
It is very easy to get the geographic coordinates (latitude & longitude) from a particular address using Google API. Google API exposes Geocoder() method which takes the address as input parameter and returns the geometry.location as output. We can parse the geometry.location to get the latitude and longitude value.
Here is the code snippets to get the latitude and longitude value from specific address. Continue reading