+ Start a Discussion
Numaan A.MNumaan A.M 

How to convert the Billing Address into Latitude and Longitude?

Hello guys am new to salesforce.
Is there a way to convert address into latitiude and londitude.
Best Answer chosen by Numaan A.M
Sagar PareekSagar Pareek
Google has a geocoding API which seems to work pretty well for most of the locations that they have Google Maps data for.

http://googlemapsapi.blogspot.com/2006/06/geocoding-at-last.html

They provide online geocoding (via JavaScript):

http://code.google.com/apis/maps/documentation/services.html#Geocoding

Or backend geocoding (via an HTTP request):

http://code.google.com/apis/maps/documentation/services.html#Geocoding_Direct

The data is usually the same used by Google Maps itself. (note that there are some exceptions to this, such as the UK or Israel, where the data is from a different source and of slightly reduced quality)

All Answers

RadnipRadnip
There are a number of applications that can do this for you on the appExchange. Otherwise you will need to code a solution using Google GeoLocation API or something similar.
Sagar PareekSagar Pareek
Google has a geocoding API which seems to work pretty well for most of the locations that they have Google Maps data for.

http://googlemapsapi.blogspot.com/2006/06/geocoding-at-last.html

They provide online geocoding (via JavaScript):

http://code.google.com/apis/maps/documentation/services.html#Geocoding

Or backend geocoding (via an HTTP request):

http://code.google.com/apis/maps/documentation/services.html#Geocoding_Direct

The data is usually the same used by Google Maps itself. (note that there are some exceptions to this, such as the UK or Israel, where the data is from a different source and of slightly reduced quality)
This was selected as the best answer
Numaan A.MNumaan A.M
Thank you Radnip and Sagar pareek
Rick UptonRick Upton
Hi Numaan,

I know it's almost four years later, but just in case you or anyone else is interested, Salesforce can add billing address geocodes for all accounts by going to Setup/Data Integration Rules and then activating the rule Geocodes for Account Billing Address. After you activate this, Salesforce will populate the Billing Geocode Accuracy, Billing Latitude, and Billing Longitude fields for each account record.