cancel
Showing results for 
Search instead for 
Did you mean: 

How to consume Google REST web service

Former Member
0 Kudos

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&des...

or

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

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184578
Active Contributor
0 Kudos

Hi,

check this reference to start with: [How to integrate google maps in Web Dynpro ABAP|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0bca5ae-3c5c-2d10-938d-a81787f59ace?QuickLink=index&overridelayout=true]

Also this demo by Thomas Jung Sir: [Google Maps: Flash Islands in WDA|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/80f16eef-91ef-2b10-4fb5-d709436f3cc3&overridelayout=true]

hope this helps u.,

@moderators: Don't Close this thread instead move to Web Dynpro ABAP Forum

Thanks & Regards,

Kiran

Former Member
0 Kudos

Thanks. I know first document and I've used it but as I said - this only shows route on map, but gives no other informations. I need to know distance which involves http-request to other web service. Second one uses flash islands, so I'm also not sure if that's solution which I'm looking for.

Former Member
0 Kudos

Hello,

Did you find a solution on how to call the google web services ?

I have to do the same thing,

Thanks

Benoî

Former Member
0 Kudos

Hi Pawel,

Did you get a solution for the distance calculation? If yes, could you please share your approach?

Thanks and Regards

Gladson