iamsonal / GoogleMapsAutocomplete

3 stars 9 forks source link

missing apex controller #1

Open thierrytrouin opened 6 years ago

thierrytrouin commented 6 years ago

Hi iamsonal,

Great, your lightning componant. Do you have the apex controller used in your dev (name:GoogleMapsController) ?

Many thanks,

iamsonal commented 6 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

brahmajitammana commented 6 years ago

Can you share gethttp method ?

Coriux commented 6 years ago

I also would like to see the gethettp method.

iamsonal commented 6 years ago

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(); }