cancel
Showing results for 
Search instead for 
Did you mean: 

Google API Places AutoComplete in SAP UI5 with Cloud Platform Destinations

0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

I am so stupid to answer my dumb question but it may actually help someone.

First the entire process is right but the URL i am trying to add in Cloud Cockpit is wrong .

The actual URL to be added and to be appended in controller of our app is this

https://cors-anywhere.herokuapp.com

  • SAP CLOUD PLATFORM COCKPIT DESTINATION:

  • Neo-app.json
{
"path": "/Google",
"target": {
"type": "destination",
"name": "Google"
},
"description": "Api Information"
}

Thanks,

Abhinay Dogiparthi

Answers (0)