GoMaps

Go Maps Integration

GoMaps.GoMapsIntegration History

Hide minor edits - Show changes to output

April 16, 2015, at 04:00 PM by 142.4.217.187 -
Changed lines 5-6 from:
The idea here is that folks use the GoMaps Mobile file but sync it with it their own database instead of with the GoMaps Hosted example it ships with. This is done by changing GoZyncHosted to use the properties table in their own solution instead of the one in GoMapsHosted.
to:
The idea here is that you'll use the GoMaps Mobile file but sync it with it your own database instead of the GoMaps Hosted example included in the GoMaps download package. This is done by remapping the gzh_Properties table occurrence and the field objects on the gzh_Properties layout in GoZyncMobile to the properties table and fields in your own file.
Changed lines 18-19 from:
We include an example file that you can use called "GoMaps Hosted" but you will most likely want to use an existing FileMaker solution as your data source. The easiest way to integrate GoMaps into your solution is to copy and paste the table contents of the "GoMaps Hosted" file into the appropriate table in your solution. You may have the necessary fields in your solution. You can either rename these fields to match what is in GoMaps or you can use the field mapping capabilities of GoZync to map those fields to the corresponding fields in GoMaps.
to:
We include an example file that you can use called "GoMaps Hosted" but you will most likely want to use an existing FileMaker solution as your data source. The easiest way to integrate GoMaps into your solution is to copy the fields listed below from the Properties table in "GoMaps Hosted" and paste them into the table that contains the addresses you want to appear on the map in your solution. You will probably already have some of these fields in your solution. For the smoothest integration, rename these fields to match what is in GoMaps.
Changed lines 86-95 from:
'''6. Update GoZyncHosted'''
Add external data source - If you have not synced your file with GoZync yet you will need to add your hosted file as an external data source in GoZyncHosted.

Add table occurrences - We provide the appropriate table occurrences in GoZyncHosted to sync with the GoMaps Hosted file provided. To switch this to your file simply double click on the "Zync_Properties" TO and change the source file to your file you selected in the previous step for the external data source. Make sure to name the TO back to "Zync_Properties" after your selection. If you are using a media table do the same for that and make sure to name it "Zync_Media".

Select your file in the integration setup - In the dashboard of GoZync Hosted click on the "Integration & Options" button for "Zync_Properties". We just need to change the hosted file to your file. If you chose not to rename any of your field names this is the point where you would want to set up field mapping. Navigate to the "Field Mapping" tab and map your fields to the corresponding fields in "GoMaps". If you renamed your fields as shown above in step 2 no field mapping is necessary.

Once you have selected your file go back to the dashboard and do the same thing for "Zync_Media".

'''7
. Sync'''
to:
'''6. Sync'''
April 07, 2015, at 01:18 PM by 142.4.217.188 -
Added lines 8-9:

(:include NeedHelp:)
August 11, 2014, at 06:29 PM by 50.132.85.96 -
Changed lines 103-113 from:
Adding whole new tables (see GoZync docs)

! Going Further

!! Topic

There must be something else.

!! Topic 2

Right?
to:
Adding whole new tables (see the GoZync docs)
May 13, 2013, at 06:08 PM by 98.203.211.206 -
Added lines 1-113:
! Adding GoMaps to your solution

!! Overview

The idea here is that folks use the GoMaps Mobile file but sync it with it their own database instead of with the GoMaps Hosted example it ships with. This is done by changing GoZyncHosted to use the properties table in their own solution instead of the one in GoMapsHosted.

If you're already using GoZync, read [[AlreadyUsingZync | this]] first, then return here to get to work.

!! Getting Started: Changing GoZyncHosted.

'''1. Backup your files.'''

-> Really.

'''2. Add Required Fields.'''
We include an example file that you can use called "GoMaps Hosted" but you will most likely want to use an existing FileMaker solution as your data source. The easiest way to integrate GoMaps into your solution is to copy and paste the table contents of the "GoMaps Hosted" file into the appropriate table in your solution. You may have the necessary fields in your solution. You can either rename these fields to match what is in GoMaps or you can use the field mapping capabilities of GoZync to map those fields to the corresponding fields in GoMaps.

Open the "GoMaps Hosted" file and then go to "Manage Database" to access the tables and fields. Make sure you are viewing the fields for the "Properties" table. You may not have a properties table in your solution, that is OK. You will need something equivalent though, something with address data. For example "Contacts", "Addresses", "Inspections" etc. If you don't have an existing table that you are trying to get address data from you can copy and paste our "Properties" table into your solution and skip past adding fields and go to step 2. Regardless of your table name this documentation will refer to this table as "Properties" from here on.

Copy and paste our "gm" fields:
->"gm_GeoLocation"
->"gm_Area"

Make sure your fields match the fields in GoMaps Hosted. You can either create missing fields in your solution or copy and paste them from GoMaps Hosted. It works best if the fields have the same names. You most likely have address fields already so we recommend renaming those fields in your solution to match ours if possible:

Rename in your solution or copy and paste the contact fields:
->"ContactName"
->"ContactCompany"

We have some category fields that we use. If you don't have these fields please add them in your solution. If you do have these fields you can rename them:
->"Type"
->"Status"

Now do the same for the address fields:
->"Address"
->"UnitNumber"
->"City"
->"State"
->"PostalCode"

The workflow fields are all optional but syncing will go more smoothly if you have these fields in your solution:
->"Notes"
->"InspectionDate"
->"PercentComplete_Foundation"
->"PercentComplete_Framing"
->"PercentComplete_Electrical"
->"PercentComplete_Plumbing"
->"PercentComplete_Roofing"
->"PercentComplete_Exterior"

And if you haven't already integrated GoZync you will want to add the mod timestamp field copy and paste works best:
->"gz_ModTimeStamp"

If you would like to use property images in GoMaps you will need to do this same process with the "Media" table.

Make sure you have a property ID field:
->"_id_Property"

Container fields:
->"MediaContainer"
->"gm_Thumbnail"

And the  GoZync timestamp field:
->"gz_ModTimeStamp"


'''3. Add Sync TO's'''
Now that all of your fields are in place you will need to create table occurrences for syncing purposes. This will help make the integration process much simpler.

Find the "Properties" table occurrence in your solution in the relationship graph and duplicate it. Rename the TO to "Zync_Properties". If you are using a media table do the same for that TO and name it "Zync_Media".

'''4. Add Sync Layouts'''
You will need to create a corresponding layout for each TO you plan to sync. These layouts will need to have each field you would like to sync.

Create a new layout called "Zync_Properties" based on the "Zync_Properties" table occurrence. Add all of the fields listed above in the add fields section to the layout.

If you are using a media table add a new layout called "Zync_Media" based on the "Zync_Media" table occurrence. Add all of the fields listed above in the add fields section.

'''5. Add Geo Code Lookup To Your File'''
The GoMaps mobile file will lookup and add any geo location codes that are missing from your properties. It is much faster to handle this before the data goes down to the mobile file though. To lookup geo codes in your hosted solution you will need to copy the script folder called "GoMaps" from the GoMaps Hosted file and paste that folder of scripts into your solution. It works best to set the geo code lookup to trigger based on the OnObjectSave script trigger. You can set any field to trigger the geo code lookup by assigning the OnObjectSave trigger to run the script called "GeoCodeAddress (address, tempObjectName, resultFieldName)". The recommended fields to set this trigger on are the "Address", "City", and "State" fields. You can see the best method for passing in the appropriate script parameter on those fields in the "GoMaps Hosted" file. The "gm_GeoLocation" field does need to be on the layout for the lookup to work but you can put that field off the layout boundary so it isn't visible.

You may want to lookup geo codes for all your records. If this is the case we do provide a script called "Re-GeoCode All Properties". You may need to modify the script parameter on the GeoCode Address script step to make sure it is referencing your fields. This script will loop through all of the records in your properties table and download the geo location code for each.

'''6. Update GoZyncHosted'''
Add external data source - If you have not synced your file with GoZync yet you will need to add your hosted file as an external data source in GoZyncHosted.

Add table occurrences - We provide the appropriate table occurrences in GoZyncHosted to sync with the GoMaps Hosted file provided. To switch this to your file simply double click on the "Zync_Properties" TO and change the source file to your file you selected in the previous step for the external data source. Make sure to name the TO back to "Zync_Properties" after your selection. If you are using a media table do the same for that and make sure to name it "Zync_Media".

Select your file in the integration setup - In the dashboard of GoZync Hosted click on the "Integration & Options" button for "Zync_Properties". We just need to change the hosted file to your file. If you chose not to rename any of your field names this is the point where you would want to set up field mapping. Navigate to the "Field Mapping" tab and map your fields to the corresponding fields in "GoMaps". If you renamed your fields as shown above in step 2 no field mapping is necessary.

Once you have selected your file go back to the dashboard and do the same thing for "Zync_Media".

'''7. Sync'''
In GoMaps navigate to the home screen and click "Pull new properties down to this device". This will sync any record that has been modified since the addition of the "gz_ModTimeStamp" field to your file. If you ran the routine to look up geocodes this should be every property record you have.

!! Getting Started: Changing GoMaps.

'''Backup'''

'''Adding New Fields'''
If GoMaps is lacking specific fields you need you can either re-purpose the workflow fields (for example you can rename "PercentComplete_Foundation"). You can also create new fields in the Properties table. It is easiest if the field name in the "GoMaps" file matches the field name exactly in your file. This will avoid needing to use field mapping in GoZyncHosted. Once you have added the fields to the table you will also need to add those fields to the sync layout. The sync layout in GoMaps is called "Zync_Properties". Make sure to also add that field to the sync layout in your hosted solution.

Adding whole new tables (see GoZync docs)

! Going Further

!! Topic

There must be something else.

!! Topic 2

Right?
(855) SEEDCODE
[email protected]
Follow us: