SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Access SAP HANA Spatial Service APIs

Explore select functionality available in SAP HANA Spatial Services including geocoding, mapping and routing.

Overview

🎓 beginner 15 min. SAP HANA SpatialSAP Business Technology PlatformBeginnerCloudNode JsPython

You will learn

  • โœ”How to subscribe to the SAP HANA Spatial Service in the SAP Business Technology Platform
  • โœ”How to use the REST API for geocoding, mapping, and routing services
  • โœ”How to call these services from a sample program
Markus Fath M Markus Fath February 7, 2023
Created by December 4, 2022
Contributors

Prerequisites

Prerequisites

  • Access to an SAP Business Technology Platform account with the ability to add the SAP HANA Spatial Service
    • A tool such as the REST Client extension for Visual Studio Code enabling the calling of a REST API
    • A development tool such as Visual Studio Code or the SAP Business Application Studio to create Python and Node.js applications

Steps

Intro

SAP HANA Spatial Services provide a unified interface to spatial services that support various back-end service providers such as Here and Esri. These services can be accessed through a REST API and provide support for geocoding, routing, and mapping. Details of these REST APIs can also be found in the SAP API Business Hub.

HSS in the SAP API Business Hub
HSS in the SAP API Business Hub

The video Access HANA Spatial Services APIs Using Visual Studio Code provides a demonstration of accessing the three APIs.


Step 1 Setup
โ€”

Full details on the setup can be found at SAP HANA Spatial Services Onboarding Guide. The following is a brief summary of the required steps.

  1. Regions where SAP HANA Spatial Services are available can be found in the SAP Discovery Center.

    service availability
    service availability

  2. After creating a subaccount in one of the regions that offers the SAP HANA Spatial Services, add the entitlement.

    add the entitlement
    add the entitlement

    Additional details on adding entitlements can be found at Add a New Entitlement to Your Subaccount.

  3. Create a service instance.

    create the service
    create the service

  4. Add a service key to the service which provides the URL and credentials to access the service.

    add a service key
    add a service key

    When creating a service key, a JSON file or parameters section is not needed and can be left empty.

Step 2 Get started with the REST Client extension for Visual Studio Code
+
Step 3 Request a bearer token to enable access to the REST APIs
+
Step 4 Geocoding
+
Step 5 Routing
+
Step 6 Mapping
+
Step 7 Knowledge check
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 7
1. Setup 2. Get started with the REST Client extension for Visual Studio Code 3. Request a bearer token to enable access to the REST APIs 4. Geocoding 5. Routing 6. Mapping 7. Knowledge check

Learn more →