Skip to Content
0
Jan 23, 2020 at 09:17 PM

Google API Places AutoComplete in SAP UI5 with Cloud Platform Destinations

111 Views

Hi Experts,

I am trying to get the Google Places AutoComplete API to my SAP UI5 Application.But when i am trying to set the URL in SAP Cloud Platform Cockpit Destination to avoid CORS issue.

Its is not giving any search suggestions . I exactly followed this awesome blog( https://blogs.sap.com/2017/09/06/google-api-autocomplete-with-sapui5/ ) to do this but when it comes to setting a destination particularly for a Google API it is causing the issue.

        {
		"path": "/Google",
		"target": {
			"type": "destination",
			"name": "Google"
		},
		"description": "Api Information"
	}

Is there any other approach to fetch the Google API's . I am so confused here since other destinations which i set works but not one API.

Note: Adding Destinations is the recommended approach by SAP to go with in dealing with CORS :(

Thanks,

Abhinay Dogiparthi

Attachments

capture.png (25.0 kB)