How to convert postcode to Geolocation (latitude & longitude) using google maps api?

后端 未结 1 927
Happy的楠姐
Happy的楠姐 2021-01-31 21:22

I just want to get latitude & longitude using the post code with Google maps API.

I am using PHP for development.

How can I do this?

The post code ca

1条回答
  •  离开以前
    2021-01-31 22:20

    You can do this using google map Geocoding API. Please find below example, but to correct latitude/longitude and address you need to pass full address along with zipcode.

    For more detail please click on below link:

    http://code.google.com/apis/maps/documentation/geocoding/

    ";
    print_r($result);
    ?>
    

    0 讨论(0)
提交回复
热议问题