Provides Geofield (Geofield module) widget to geocode from Address field (Address Field module) and populate Geofield coordinates fields. Additionally displays google map with selected address on the node edit page.
Out of the box Geofield widgets don't support direct geocoding from Address field and require manual data input. There is also Geocoder module which geocodes from other fields and populates Geofield. But it performs geocoding after form submit, not showing coordinates in the node edit form. This new project is geocoding using Google Maps API and displaying coordinates in the input text fields allowing to edit them, additionally showing address on the map.
Link to the project https://www.drupal.org/sandbox/andreyjan/2477245
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/andreyjan/2477245.git
geofield_find_address
cd geofield_find_addresshttp://pareview.sh/pareview/httpgitdrupalorgsandboxandreyjan2477245git
| Comment | File | Size | Author |
|---|---|---|---|
| geocode.jpg | 77.8 KB | andreyjan | |
| geocode_0.jpg | 2.63 KB | andreyjan |
Comments
Comment #1
andreyjan commentedComment #2
artematem commentedCheck http://pareview.sh/pareview/httpgitdrupalorgsandboxandreyjan2477245git
In addition:
geofield_find_address.js:
1. use context in selector (e.g. $("button.address-gmap-find-address-button”, context))
2. line 29-30 no need to create variable if you use it only once.
geofield_find_address.info:
1. use "scripts[] = js/geofield_find_address.js” for js files, not files.
geofield_find_address.module
1. Use require_once instead of module_load_include, as you know for sure where file is and that it exists, so no need in extra checks (see http://stackoverflow.com/a/7270875)
geofield_find_address.widgets.inc
1. line 55: use single quote (') in strings
drupal_get_path('module', 'geofield_find_address') . '/js/geofield_find_address.js';as there are no variables inside them.
Comment #3
andreyjan commentedThanks artematem.
Fixed all issues.
Comment #4
andreyjan commentedComment #5
artematem commentedgeofield_find_address.js line 32-33: better to use
else if (...) {}instead of
Comment #6
ziomizar commentedHi andreyjan
Better if you put the pareview link in description.
Automated Review
No pareview errors found
Manual Review
Individual user account
Yes follow the guideline
No duplication
Try to explain better how your module differ from geofield+address field that also use google maps api and fill coordinates fields showing a map.
see https://www.drupal.org/node/23789
Master Branch
Yes follow the guidelines for master branch.
Licensing
Yes: Follows the licensing requirements.
3rd party assets/code
Yes: Follows the guidelines for 3rd party assets/code.
README.txt/README.md
No: Does not follow the guidelines for in-project documentation and/or the README Template.
- There are no heading and some sections.
Code long/complex enough for review
Yes: Follows the guidelines for project length and complexity.
Secure code
Yes: Meets the security requirements
Looking at your code all seems ok
Comment #7
andreyjan commentedComment #8
andreyjan commentedChanged else if statement in geofield_find_address.js
Also added headings and required sections in README.txt
ziomizar, can you please tell me which other module has such a functionality. Addressfield and Geofiled don't have it.
Comment #9
andreyjan commentedComment #10
andreyjan commentedComment #11
PA robot commentedWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #12
blacksnipeAutomated Review
No issues found.
Manual Review
This review uses the Project Application Review Template.
Comment #13
cweagansThanks for your contribution!
I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.
Comment #14
andreyjan commentedThanks cweagans!