globalgeocodedb create sample file
The globalgeocodedb create_sample_file command creates sample JSON files of the Spectrum Global Geocoding database resources. These generated files can be used as a reference for providing configurations when creating a database resource. GeocodeGlobalSingleDictDbResource.txt and GlobalGeocodeDoubleDictDbResource.txt JSON files are created in the current directory or in a specified folder location.
Usage
globalgeocodedb create_sample_file --o outputpathRequired | Argument | Description |
---|---|---|
No | --o outputpath |
The sample database resources JSON files will be created at the designated output directory. If the output path is not specified, the sample JSON files will be written to the current folder. |
Example
This example creates the sample database resources JSON files in the current folder.
globalgeocodedb create_sample_fileSample JSON database resources file
The following example creates the database resources JSON files in C:\OutputFolder\.
globalgeocodedb create_sample_file --o C:\OutputFolder\
[{"product":"GlobalGeocode",
"module":"GlobalGeocode",
"name":"$$DATABASE_NAME$$",
"maxActive":4,
"properties":
{"COUNTRY_CODE1":"$$COUNTRY_CODE1$$",
"$$COUNTRY_CODE1$$_DICTIONARY_PATH1":"$$DICTIONARY_PATH1$$",
"COUNTRY_COUNT":"1",
"$$COUNTRY_CODE1$$_DICTIONARY_PATH_NAME1":"$$DICTIONARY_PATH_NAME1$$"}
}]