Use Results From Google Maps, HOW?


how can I use the results (“types” : [ “administrative_area_level_1”, “political” ]) I get from the Google Maps API (JSON),9.1829321&key=GOOGLE_MAP_API

I need this result and put it into an custom field called “PROVINCE”.

Any suggestion how I can send the URL, get the response and save the wiched data into a custom field?

update_post_meta( $post_id, 'province', $google_map_administrative_area_level_1;

Can anyone help me in this case?

Thanks so much,

Source link