none
Get Location from address synchronously RRS feed

  • Question

  • Hi,

    We want to get the location from address enter by user. We are able to get location from address using async method. But we want to get the location synchronously. Is it possible.

    Thanks!

    Balasaheb

     
    Monday, March 14, 2016 10:24 AM

Answers

  • Why? This would cause your app to freeze until the request responds. This would be a bad design. Note that to geocode an address an AJAX call is made to the servers to process the request. AJAX is how client side JavaScript communicates with servers without having to refresh the page. AJAX stands for "Asynchronous JavaScript and XML".

    http://rbrundritt.wordpress.com

    Tuesday, March 15, 2016 1:36 AM

All replies

  • Why? This would cause your app to freeze until the request responds. This would be a bad design. Note that to geocode an address an AJAX call is made to the servers to process the request. AJAX is how client side JavaScript communicates with servers without having to refresh the page. AJAX stands for "Asynchronous JavaScript and XML".

    http://rbrundritt.wordpress.com

    Tuesday, March 15, 2016 1:36 AM
  • Hi Ricky,

    OK, thanks.

    Tuesday, March 15, 2016 2:45 PM