Port some code to WebGMaps

Hello,


Is there an example for a Jason request?

I used in my implementation the following source:
  searchForAddress := url1+address+sensor+encoding+'&key='+GOOGLE_MAPS_API_KEY;
  searchForAddressEncoded := IdURI.TIDUri.UrlEncode(searchForAddress);
  req := CoXMLHTTP.Create;
  req.open('GET', searchForAddressEncoded, false, EmptyParam, EmptyParam);
  req.send(EmptyParam);
  UpdateRoot(SO(req.responseText));

How can this be ported to VCL WebGMaps?

Any help appreciated!

Sincerely Peter 

Hi,


Unfortunately there are currently no standalone sample available to demonstrate this.
You can have a look at the source code for the GetDirections call to see how HTTP requests are handled.