Title: Contribution and Aid
Last modified: September 1, 2016

---

# Contribution and Aid

 *  [Junkie Kode](https://wordpress.org/support/users/junkiekode/)
 * (@junkiekode)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/contribution-and-aid/)
 * Hello Gravity Wiz,
 * I would like to contribute to the development of this plugin and get some help
   from you if that’s ok.
    Below is some code that enables the recording of addresses
   from Gravity Forms > to > Google Maps Builder. [https://wordpress.org/plugins/google-maps-builder/](https://wordpress.org/plugins/google-maps-builder/)
 * Could you please make it part of your official version?
    I think it does not 
   interfere with any other of your features. It would save me the hassle on having
   to re-add this code each type a new update is released and I believe it could
   help other users of yours that might find it useful as well 🙂
 * On the Form Editor, when using the “Custom Field” under the “Post Fields”, the
   settings should look like this: [https://screencloud.net/v/E77P](https://screencloud.net/v/E77P)
 * On this current version 3.1.5
    In the “gfcptaddonbase.php” file Between line 
   187– “ function set_post_values( $post_data, $form ) { “
 * and line 189–
    “ //check if the form saves a post “
 * Paste this:
 *     ```
       /* prakash */
       			error_reporting(0);
       			 $_gmb_address = $post_data['post_custom_fields']['_gmb_address'];
       			 $address = str_replace(" ", "+", $_gmb_address);
       			 $json = file_get_contents("http://maps.google.com/maps/api/geocode/json?address=$address&sensor=false&region=$region");
       			 $json = json_decode($json);
       			 $lat = $json->{'results'}[0]->{'geometry'}->{'location'}->{'lat'};
       			 $long = $json->{'results'}[0]->{'geometry'}->{'location'}->{'lng'};
   
       			 array_push($post_data['post_custom_fields']['_gmb_lat'] = $lat);
       			 array_push($post_data['post_custom_fields']['_gmb_lng'] = $long);
       			/* prakash */
       ```
   
 * The developer who wrote this code for me was Prakash Parghi.
    [https://profiles.wordpress.org/prakash30/](https://profiles.wordpress.org/prakash30/)
 * [https://wordpress.org/plugins/gravity-forms-custom-post-types/](https://wordpress.org/plugins/gravity-forms-custom-post-types/)

The topic ‘Contribution and Aid’ is closed to new replies.

 * ![](https://ps.w.org/gravity-forms-custom-post-types/assets/icon-256x256.png?
   rev=2542252)
 * [Gravity Forms + Custom Post Types](https://wordpress.org/plugins/gravity-forms-custom-post-types/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gravity-forms-custom-post-types/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gravity-forms-custom-post-types/)
 * [Active Topics](https://wordpress.org/support/plugin/gravity-forms-custom-post-types/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gravity-forms-custom-post-types/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gravity-forms-custom-post-types/reviews/)

## Tags

 * [addresses](https://wordpress.org/support/topic-tag/addresses/)
 * [builder](https://wordpress.org/support/topic-tag/builder/)
 * [forms](https://wordpress.org/support/topic-tag/forms/)
 * [from](https://wordpress.org/support/topic-tag/from/)
 * [gravity](https://wordpress.org/support/topic-tag/gravity/)
 * [to](https://wordpress.org/support/topic-tag/to/)

 * 0 replies
 * 1 participant
 * Last reply from: [Junkie Kode](https://wordpress.org/support/users/junkiekode/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/contribution-and-aid/)
 * Status: not resolved