You need to sign in to do that
Don't have an account?
Apex Code Development
How to get the geographical location based on IP address?
Dear folks,
I'm getting a lead from website(using web to lead concept). My client is able to capture the IP address from which the lead is getting.
In Salesforce.com, based on the IP address of the lead I need to capture the geographical location from where I got the lead.
Thanks & Regards,
Jagadeesh K.
you can achieve this by creating a visuaforce page with google api. I have explained in detail please try it.
step1: create a visualforce page using below code sample, this code is used for account object, but you can change based on your requirement
step2: Add the Visualforce page on the page layout (in a single-column section) and set it’s height to be 300px.
please let me know if it helps to resolve your issue and mark it as best answer if it is.
PS : This is a paid webservice. You can search if there are some free one's available.