Blog

Get your location using google API in Salesforce and assign date time value from JavaScript to Salesforce fields

Posted on Nov 26, 2016 by Piyush Singh in Other with 1 comments .

Hi All,Here i am giviing the sample of getting your location in Salesforce through google Map API. This code will give your current location (based on your browser) using latitude and logitude. To implement this process in salesforce, you need to follow given steps:1. Create remote site setting with this url in salesforce and make Disable security protocal checkbox to true. URL: "https://maps.googleapis.com/maps/api/js?sensor=false" 2. Then create a new visual force page and use the given sourc