Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Port some code to WebGMaps

 Post Reply Post Reply
Author
Stadler Peter View Drop Down
Member
Member
Avatar

Joined: 05 Jan 2013
Posts: 61
Post Options Post Options   Quote Stadler Peter Quote  Post ReplyReply Direct Link To This Post Topic: Port some code to WebGMaps
    Posted: 25 Jul 2019 at 3:42pm
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 
Back to Top
Bart Holvoet View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2052
Post Options Post Options   Quote Bart Holvoet Quote  Post ReplyReply Direct Link To This Post Posted: 25 Jul 2019 at 5:04pm
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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down