Moonsoft Software Solutions

calculation with google address

Started 3 Jul 2017 · 1 reply

  1. bsnline
    Hi,
    I have adding a google address field,

    example.

    I have google address: Duomo, Milano , MI Italia ( address, city , district , country ) add region it's possible ?

    then,
    I have table matrix with rates for ( region or district ).

    I can get information from address ( for example: region, country, district) for calculation with table matrix ?

    Thank You
  2. Moonsoft support
    Hi,

    We suggest to check official Google API docs in order to know if it's possible to recover address details or not, here we share the url:

    https://developers.google.com/maps/documentation/javascript/3.exp/reference#Autocomplete

    In case you only can recover the plain text at your input field, there is a way to split texts based on a separator (for example a comma), using the function explode:
    $result=explode(',',$YOUR_INPUT);

    so you'll have at $result the first item(address), at $result the second(city), etc. Obviously, this only can work if your addresses are always following the same structure.

    Regards,

Still stuck?

Customers with an active license can open a support ticket.

Log in to open a ticket