Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 9057

How to consume Google REST web service

$
0
0

Dear All,

 

I have a task to embed Google Maps into web dynpro and/or CRM WebUI.

There is no problem with embedding only map with route on it, but I need also calculated distance.

 

In WebDynpro I've just created iFrame CHIP component which targets: http://maps.google.pl/maps?output=embed and two CHIPS with import parameters to give source and destination address. Route is calculated and drawn.

 

Problem is with the distance, because the only way is to consume google web service (which is not SOAP, so I can't use service consumer). It must be something like web request.

 

URL which I need to access is:

http://maps.googleapis.com/maps/api/distancematrix/xml?&mode=driving&sensor=false&origins=Warsaw&destinations=Hamburg

 

or

 

http://maps.googleapis.com/maps/api/distancematrix/json?&mode=driving&sensor=false&origins=Warsaw&destinations=Hamburg

 

where origins and destinations must be connected with import CHIPS. How to access such service in a proper way?

Second thing is that I have to parse response.. it could be XML or JSON format. I just need summary distance. Any idea?

 

Btw - I'm quite fresh with WebDynpro and WebUI, so I'm looking for good 'HOW TO' guide. Can you recommend something which is good to start with?

 

thanks in advance


Viewing all articles
Browse latest Browse all 9057

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>