Geocode Assist Mod
|Downloads of Geocode Assist Mod are restricted to logged in users. If you do not have a user account on the TNG Wiki use the Request Account link to request a user account|
|Summary||Allows geocoding locations from the person page|
|Validation||Latest mod is XHTML compliant.|
excludes Don't Geocode locations
|Download stats||View download stats|
maintainted by Ken Roy
|Homepage||Geocode Assist Mod (this page)|
|Mod Support||TNG Community Forums|
|Latest Mod||10.1.0.1/2 for TNG 10.1 and up|
188.8.131.52 for TNG V9
8.1.2 for TNG V8
|Min TNG V||7.1.0|
|Max TNG V||11+|
In TNG V9 through TNG 10.0.3, if you install the Wiki Integration mod along with this mod, the Wiki Integration mod must be installed before the Geocode Assist Mod.
This mod provides an easy way to geocode locations. A small globe icon is added on the person page to the location that has not yet been geocoded. You must have Admin privileges to use this mod.
Geocoding is the process of coding a latitude and longitude for a location that allows the display of the location in the Google Maps section of the TNG page. In TNG, it also includes setting the Place Level and Zoom values. The small globe icon will only be shown when you are logged in with Admin privileges and only for locations that currently do not have latitude and longitude information.
The geocode_assistant function is added to personlib.php to return the html that adds a geocode globe url link next to the location name if no latitude and longitude information exists. When you click on the globe, a new window will be opened that allows you to quickly geocode this location, since the Edit Place geocode screen form has been pre-filled you only need to click the Search button. The latitude and longitude information will be automatically added to the TNG Place record when you click the Save button.
Version 8.1.1 of the mod now closes the Edit / Update Place window when you save the geocoded location. Note that the Edit window close is incorporated into TNG V9, so the enhancement part of the mod was dropped.
Version 8.1.2 of the mod is XHTML compliant.
|TNG version:||≤ 10.0.3|
|TNG version:||≥ 9.0|
This mod was developed by Brian McFadyen and enhanced by Ken Roy in version 8.1.1
- A working TNG installation. The config file release was initially tested at TNG Version 7.1.0
- A backup of your TNG personlib.php file.
- An installed current version of the Mod Manager.
|V10.1.0.2||16 May 2017||Updated to not display the geocode globe if the placelevel is set to "-1" (Don't geocode) which can be set by the Admin Places Geocode mod|
|V10.1.0.1||10 January 2015||Updated for TNG V10.1 to support MySQLi|
|V184.108.40.206||2 February 2012||Updated for TNG V9|
|V8.1.2||8 February 2011||Updated to be XHTML compliant.|
|V8.1.1||30 October 2010||Updated to now close the Edit Place window when you save the geocoded location.|
|V8.1.0||May 28, 2010||Updated for TNG 8 and to conform to the Mod Manager Parameter Editing|
|V1.6||Dec 4, 2009||Updated config file documentation to point to TNG Wiki. This file is identical as that of V1.5 included in the Mod Manager zip file, but will soon be eliminated from the bundle.|
|V1.5||May 18, 2009||Initial release of config file|
- Download the appropriate distribution for your TNG version from the download links in the status area in the upper right.
- Extract the geocode_assist.zip to your ./mod_folder (V7) or ./mods (v8 and after).
- Uninstall the previous version of the mod before installing the new version
- Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the geocode_assist.cfg.
As with most source code modifications, these changes will likely be overwritten during your next TNG revision upgrade and will need to be re-implemented. (Using the Mod Manager greatly simplifies this process).
Do not Geocode
Version v10.1.0.2 of the mod will not display the Geocode globe if the place level is to -1 (Don't Geocode) which can be set by the Admin Places Geocode mod. If you import your data via GEDCOM, then it requires that your Places set to Don't Geocode not be deleted or replaced by the import.
As far as I know TNG only preserves the Places table entry under the following circumstances:
- Place contains geocode (latitude/longitude) data
- Places are shared or pooled with other trees
You can set the option to pool Places in Admin > Setup > General Settings by expanding the Miscellaneous section and changing the Assign Place records to Trees: to NO
Setting the option to No will then provide another screen to eliminate the treeID (gedcom column) from the places. Make sure you click Save in General Settings after changing this option, which was designed to Pool Places for multiple trees. Changing the option to remove the tree from the Places means you are pooling places, that is sharing them with other tree, so TNG will not delete the places table or entries within it. Pooling Places can be used even though you only have one tree, to prevent the Don't Geocode information from being deleted or replaced.
The downside of this approach means that you now need to manage (delete or merge) unused places. You can use my Places Subject to Deletion mod to help with this or the SQL Report for Maintenance - Pooled Places with no Events
|The image on the right shows a visualization of the Geocode Assist Mod on the Individual page. The globe that you can click on to launch the Admin edit place screen is only shown if you have Admin privilege.|
In the event of a problem with your TNG site
- Try using the Mod Manager to Remove the mod
- Copy your backup personlib.php to your base TNG directory
- all should be well now
Sites using this mod
If you download and install this mod, please add your TNG site to the table below: