Open thierrytrouin opened 7 years ago
There are lot of methods in GoogleMapsController because of which I didn't share the Apex controller file. The method that is of interest is getAddressAutoComplete, which has been mentioned in this blog post: http://hellosnl.blogspot.in/2017/09/salesforce-lightning-google-places-autocomplete-predictions-search.html
Can you share gethttp method ?
I also would like to see the gethettp method.
public static String getHttp(String url) { HttpRequest req = new HttpRequest(); Http http = new Http(); req.setMethod('GET'); req.setEndpoint(url); HTTPResponse res = http.send(req); return res.getBody(); }
Hi iamsonal,
Great, your lightning componant. Do you have the apex controller used in your dev (name:GoogleMapsController) ?
Many thanks,