Quantcast
Viewing all articles
Browse latest Browse all 3131

A problem of XS Odata Service

Hi, Colleagues

 

I created an XS Odata Service in SAP Web IDE and created a Fiori demo project (for mobile device) to consume this XS Odata Service in SAP Web IDE.

 

This Fiori project demo is used to display the distance of the Fiori App user(the user using the mobile device) with other users and the goods information.

 

The XS Odata Service is as follows:

Image may be NSFW.
Clik here to view.
question_1.PNG

 

There are two tables:

Table 'URID' is used to store the user's GPS position information, such as latitude, longitude.Image may be NSFW.
Clik here to view.
question_5.PNG

Table 'URGD' is used to store the goods information of the users.

Image may be NSFW.
Clik here to view.
question_6.PNG

 

The Fiori demo project is displayed as follows, I want to display distance information in the main screen (the position of blue circle), the distance is calculated by the GPS position of the Fiori App user(mobile device) with the GPS positions of other users stored in table 'URID'.

I know the calculation logic how to calculate the distance of two GPS positions in Javascript.

My question is I don't know how to enhance the XS Odata Service to use the distance calculation coding?

Do you know how to resolve this issue?

Thanks a lot in advance!

Image may be NSFW.
Clik here to view.
question_7.PNG

 

 

 

Best regards,

Daniel


Viewing all articles
Browse latest Browse all 3131

Trending Articles