Skip to Content
Author's profile photo Shilpa Vij

Blog Series: SAP API Management-API Provider- Part 8: Connecting and exposing APIs from Here Maps

In this part 8 of 8 part blog series, I will explain, how SAP Cloud Platform, API Management can be used to securely publish APIs from 3rd Party Cloud solutions(e.g. Here Maps).Once the connection with the 3rd Party Cloud solution is established through API Provider, API Management can connect to it and make them available in a secure and documented way.

Overview of HERE Maps

Here Maps is a free GPS app which in addition to navigation and traffic, offers offline maps

Here is a fine supplement to Google Maps (which is slowly rolling out offline maps, starting with Android). Here Maps has a nice clean interface which provides easy searching.

In this blog, I will take an example of Geocoder API which is a web API that offers to geocode, reverse geocoding and landmark geocoding services. To try out these APIs navigate to https://api.sap.com.

For SAP API Management, I have taken an example of my SAP Cloud Platform trial account.

Let’s get started!

Now let’s go to the SAP API Management Service. From your SAP Cloud Platform cockpit, navigate to the list of services and locate API Management Service. Click on “Access API Portal”. It is a good idea to add the SAP API Management as a bookmark to your browser now.

Click on Develop and Navigate to API Providers

Create API Provider and fill in the following details

Note that the host name and the host port correspond to the actual host and port of the system.

Since it is a cloud system hence do not select on premise check box.

Navigate to Authentication and select NOAUTH as Authentication Type.

Lastly, navigate to the Connectivity tab, and setup the catalog service as defined below (or adapt it to your environment).

Navigate to APIs and to test the new connectivity, create a new API Proxy.

Use the previously generated API Provider and give URL as shown

Enter the remaining details and save your API Proxy.

Open the API Proxy and Navigate to Resources and add “geocode.xml”. Save it.

Navigate to Test Console by clicking on Test and click on HereMap

To get App id and App code navigate to Here.com and subscribe for 90 days’ trial and go to Geocoding API documentation and generate app id and app code.

For eg

In Header append your app id and app code to the url and click on Send

Next steps

In order to allow or deny access to the API to specific client IP or IP ranges access control policy can be used. This is done in the following blog entry.

Further Reads

  • API Security Best Practices Blog Series
  • For more blogs on SAP Cloud Platform, API Management visit us at SCN

Assigned Tags

      8 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Raghavendra H K
      Raghavendra H K

      Hi Shilpa,

      Thank u for the great blog series.

      I have created API provider for hana services but while creating proxy I am getting the below error. Can u please give a solution for that.

      Thanks

      Raghavendra

      Author's profile photo Shilpa Vij
      Shilpa Vij
      Blog Post Author

       

      Hello Raghavendra,

      Trust All should not be selected. Please create a new provider or try to delete the trust all from destination.

      Regards

      Shilpa

      Author's profile photo Raghavendra H K
      Raghavendra H K

      Thanks Shilpa, I have created a new provider without adding trust all property but now I am getting below error

      I have checked the connection in destination also, I got message as connection established  ,  can u please the give me a solution 

      Regards,

      Raghavendra

       

      Author's profile photo Shilpa Vij
      Shilpa Vij
      Blog Post Author

      Hello Raghavendra,

      Have you added the resource manually “geocode.xml” and save and deployed.?

      Please click ok on the error, add the resource manually and then test it.

      Regards

      Shilpa

       

      Author's profile photo Mohan Ramu
      Mohan Ramu

      Hi Shilpa,

       

      I am not understanding filly API platform.

      Here is my understanding please correct me if i am wrong.

      1. develop web services (rest/Odata/Soap) and deploy on cloud
      2. create API provider by configuring the details about host used in 1st step
      3. create API based on the API provider, i should define the same signature as what i defined in first step

      I am trying to do with Java, please let me know.

       

      Thanks & Regards,

      Mohan Ramu

      Author's profile photo Aswini Alapati
      Aswini Alapati

      Hi Shilpa Vij ,

       

      I tried to implement same steps as in your blog , but I am getting error as attached. Can you let me  know the solution.

       

      Regards,

      Aswini.

      Author's profile photo Shilpa Vij
      Shilpa Vij
      Blog Post Author

      Hi Aswini,

      This prefix already exists so please change the name .Just append 1 or any name.

      Regards

      Shilpa

      Author's profile photo satya mandiga
      satya mandiga

      Thanks Shilpa,

      I created a POC in apigee to connect SFDC and query objects .

       

      Same POC i like to expose in SAP API Management.

      Your blog helped on to waste much time to explore on configurations.

       

      Regards

      Satya Mandiga