how can I use the results (“types” : [ “administrative_area_level_1”, “political” ]) I get from the Google Maps API (JSON)
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,