atlas_engine 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +123 -0
- data/Rakefile +20 -0
- data/app/assets/config/atlas_engine_manifest.js +3 -0
- data/app/assets/stylesheets/atlas_engine/application.css +15 -0
- data/app/concerns/atlas_engine/handles_blob.rb +26 -0
- data/app/concerns/atlas_engine/handles_interruption.rb +22 -0
- data/app/controllers/atlas_engine/application_controller.rb +7 -0
- data/app/controllers/atlas_engine/connectivity_controller.rb +21 -0
- data/app/controllers/atlas_engine/country_imports_controller.rb +73 -0
- data/app/controllers/atlas_engine/graphql_controller.rb +59 -0
- data/app/countries/atlas_engine/ar/country_profile.yml +9 -0
- data/app/countries/atlas_engine/at/address_importer/corrections/open_address/city_corrector.rb +23 -0
- data/app/countries/atlas_engine/at/country_profile.yml +24 -0
- data/app/countries/atlas_engine/at/index_configuration.yml +63 -0
- data/app/countries/atlas_engine/at/synonyms.yml +6 -0
- data/app/countries/atlas_engine/at/validation_transcriber/address_parser.rb +58 -0
- data/app/countries/atlas_engine/au/address_importer/open_address/filter.rb +26 -0
- data/app/countries/atlas_engine/au/address_importer/open_address/mapper.rb +41 -0
- data/app/countries/atlas_engine/au/country_profile.yml +13 -0
- data/app/countries/atlas_engine/au/synonyms.yml +209 -0
- data/app/countries/atlas_engine/au/validation_transcriber/address_parser.rb +121 -0
- data/app/countries/atlas_engine/be/country_profile.yml +12 -0
- data/app/countries/atlas_engine/bm/address_importer/corrections/open_address/city_alias_corrector.rb +38 -0
- data/app/countries/atlas_engine/bm/address_importer/open_address/mapper.rb +40 -0
- data/app/countries/atlas_engine/bm/country_profile.yml +12 -0
- data/app/countries/atlas_engine/br/country_profile.yml +4 -0
- data/app/countries/atlas_engine/ca/country_profile.yml +7 -0
- data/app/countries/atlas_engine/ca/synonyms.yml +1615 -0
- data/app/countries/atlas_engine/ch/address_importer/corrections/open_address/city_corrector.rb +29 -0
- data/app/countries/atlas_engine/ch/address_importer/corrections/open_address/locale_corrector.rb +74 -0
- data/app/countries/atlas_engine/ch/address_importer/open_address/mapper.rb +40 -0
- data/app/countries/atlas_engine/ch/country_profile.yml +15 -0
- data/app/countries/atlas_engine/ch/locales/de/country_profile.yml +15 -0
- data/app/countries/atlas_engine/ch/locales/de/index_configuration.yml +63 -0
- data/app/countries/atlas_engine/ch/locales/de/synonyms.yml +7 -0
- data/app/countries/atlas_engine/ch/locales/fr/synonyms.yml +21 -0
- data/app/countries/atlas_engine/cz/country_profile.yml +6 -0
- data/app/countries/atlas_engine/de/country_profile.yml +19 -0
- data/app/countries/atlas_engine/de/index_configuration.yml +64 -0
- data/app/countries/atlas_engine/de/synonyms.yml +2 -0
- data/app/countries/atlas_engine/de/validation_transcriber/address_parser.rb +19 -0
- data/app/countries/atlas_engine/dk/country_profile.yml +6 -0
- data/app/countries/atlas_engine/dk/synonyms.yml +3 -0
- data/app/countries/atlas_engine/dk/validation_transcriber/address_parser.rb +21 -0
- data/app/countries/atlas_engine/fo/country_profile.yml +5 -0
- data/app/countries/atlas_engine/fr/address_importer/corrections/open_address/city_corrector.rb +28 -0
- data/app/countries/atlas_engine/fr/country_profile.yml +13 -0
- data/app/countries/atlas_engine/fr/synonyms.yml +21 -0
- data/app/countries/atlas_engine/fr/validation_transcriber/address_parser.rb +34 -0
- data/app/countries/atlas_engine/gb/address_validation/es/query_builder.rb +98 -0
- data/app/countries/atlas_engine/gb/country_profile.yml +10 -0
- data/app/countries/atlas_engine/gb/validation_transcriber/full_address_parser.rb +164 -0
- data/app/countries/atlas_engine/gb/validation_transcriber/parsed_address.rb +120 -0
- data/app/countries/atlas_engine/gg/address_validation/validators/full_address/restrictions/unsupported_city.rb +39 -0
- data/app/countries/atlas_engine/gg/country_profile.yml +7 -0
- data/app/countries/atlas_engine/ie/country_profile.yml +3 -0
- data/app/countries/atlas_engine/it/address_importer/corrections/open_address/city_corrector.rb +27 -0
- data/app/countries/atlas_engine/it/address_importer/corrections/open_address/province_corrector.rb +29 -0
- data/app/countries/atlas_engine/it/address_importer/open_address/mapper.rb +42 -0
- data/app/countries/atlas_engine/it/country_profile.yml +11 -0
- data/app/countries/atlas_engine/jp/address_validation/es/data_mapper.rb +63 -0
- data/app/countries/atlas_engine/jp/country_profile.yml +6 -0
- data/app/countries/atlas_engine/kr/address_importer/open_address/mapper.rb +41 -0
- data/app/countries/atlas_engine/kr/country_profile.yml +11 -0
- data/app/countries/atlas_engine/li/address_importer/corrections/open_address/city_corrector.rb +25 -0
- data/app/countries/atlas_engine/li/country_profile.yml +21 -0
- data/app/countries/atlas_engine/li/index_configuration.yml +63 -0
- data/app/countries/atlas_engine/li/synonyms.yml +6 -0
- data/app/countries/atlas_engine/lt/country_profile.yml +6 -0
- data/app/countries/atlas_engine/lt/synonyms.yml +7 -0
- data/app/countries/atlas_engine/lt/validation_transcriber/address_parser.rb +24 -0
- data/app/countries/atlas_engine/lu/address_importer/corrections/open_address/locale_corrector.rb +54 -0
- data/app/countries/atlas_engine/lu/country_profile.yml +12 -0
- data/app/countries/atlas_engine/nl/address_importer/corrections/open_address/city_corrector.rb +25 -0
- data/app/countries/atlas_engine/nl/country_profile.yml +18 -0
- data/app/countries/atlas_engine/nl/index_configuration.yml +52 -0
- data/app/countries/atlas_engine/nl/synonyms.yml +92 -0
- data/app/countries/atlas_engine/nl/validation_transcriber/address_parser.rb +85 -0
- data/app/countries/atlas_engine/no/country_profile.yml +5 -0
- data/app/countries/atlas_engine/nz/country_profile.yml +3 -0
- data/app/countries/atlas_engine/pl/country_profile.yml +5 -0
- data/app/countries/atlas_engine/pl/validation_transcriber/address_parser.rb +19 -0
- data/app/countries/atlas_engine/pt/address_importer/corrections/open_address/city_corrector.rb +32 -0
- data/app/countries/atlas_engine/pt/address_importer/open_address/mapper.rb +39 -0
- data/app/countries/atlas_engine/pt/country_profile.yml +10 -0
- data/app/countries/atlas_engine/pt/synonyms.yml +7 -0
- data/app/countries/atlas_engine/sa/country_profile.yml +10 -0
- data/app/countries/atlas_engine/se/country_profile.yml +5 -0
- data/app/countries/atlas_engine/tt/address_importer/open_address/mapper.rb +38 -0
- data/app/countries/atlas_engine/tt/country_profile.yml +7 -0
- data/app/countries/atlas_engine/us/country_profile.yml +12 -0
- data/app/countries/atlas_engine/us/synonyms.yml +350 -0
- data/app/graphql/atlas_engine/errors/locale_unsupported_error.rb +17 -0
- data/app/graphql/atlas_engine/schema.graphql +1293 -0
- data/app/graphql/atlas_engine/schema.rb +23 -0
- data/app/graphql/atlas_engine/types/address_validation/address_input.rb +51 -0
- data/app/graphql/atlas_engine/types/address_validation/concern_type.rb +20 -0
- data/app/graphql/atlas_engine/types/address_validation/enums/concern_enum.rb +15 -0
- data/app/graphql/atlas_engine/types/address_validation/field_type.rb +15 -0
- data/app/graphql/atlas_engine/types/address_validation/suggestion_type.rb +21 -0
- data/app/graphql/atlas_engine/types/base_argument.rb +9 -0
- data/app/graphql/atlas_engine/types/base_enum.rb +9 -0
- data/app/graphql/atlas_engine/types/base_field.rb +10 -0
- data/app/graphql/atlas_engine/types/base_input_object.rb +9 -0
- data/app/graphql/atlas_engine/types/base_interface.rb +10 -0
- data/app/graphql/atlas_engine/types/base_object.rb +9 -0
- data/app/graphql/atlas_engine/types/base_scalar.rb +9 -0
- data/app/graphql/atlas_engine/types/base_union.rb +9 -0
- data/app/graphql/atlas_engine/types/matching_strategy_type.rb +12 -0
- data/app/graphql/atlas_engine/types/mutation_type.rb +9 -0
- data/app/graphql/atlas_engine/types/query_type.rb +61 -0
- data/app/graphql/atlas_engine/types/validation_supported_country.rb +12 -0
- data/app/graphql/atlas_engine/types/validation_type.rb +22 -0
- data/app/helpers/atlas_engine/address_importer/import_log_helper.rb +66 -0
- data/app/helpers/atlas_engine/application_helper.rb +7 -0
- data/app/helpers/atlas_engine/locale_format_helper.rb +40 -0
- data/app/helpers/atlas_engine/log_base.rb +32 -0
- data/app/helpers/atlas_engine/log_helper.rb +24 -0
- data/app/helpers/atlas_engine/metrics_helper.rb +25 -0
- data/app/jobs/atlas_engine/address_importer/clear_records_job.rb +39 -0
- data/app/jobs/atlas_engine/address_importer/open_address/geo_json_import_job.rb +212 -0
- data/app/jobs/atlas_engine/address_importer/open_address/geo_json_import_launcher_job.rb +67 -0
- data/app/jobs/atlas_engine/address_importer/open_address/prepares_geo_json_file.rb +41 -0
- data/app/jobs/atlas_engine/address_importer/resumable_import_job.rb +49 -0
- data/app/jobs/atlas_engine/address_importer/street_backfill_job.rb +63 -0
- data/app/jobs/atlas_engine/application_job.rb +10 -0
- data/app/jobs/atlas_engine/concerns/address_importer/handles_errors.rb +43 -0
- data/app/lib/atlas_engine/concern_formatter.rb +40 -0
- data/app/lib/atlas_engine/restrictions/base.rb +20 -0
- data/app/lib/atlas_engine/restrictions/unsupported_script.rb +31 -0
- data/app/lib/atlas_engine/validation_transcriber/address_parser_base.rb +201 -0
- data/app/lib/atlas_engine/validation_transcriber/address_parser_factory.rb +27 -0
- data/app/lib/atlas_engine/validation_transcriber/address_parser_north_america.rb +39 -0
- data/app/lib/atlas_engine/validation_transcriber/address_parser_oceanic.rb +17 -0
- data/app/lib/atlas_engine/validation_transcriber/address_parser_preprocessor.rb +132 -0
- data/app/lib/atlas_engine/validation_transcriber/address_parsing_helper.rb +38 -0
- data/app/lib/atlas_engine/validation_transcriber/address_parsings.rb +54 -0
- data/app/lib/atlas_engine/validation_transcriber/constants.rb +50 -0
- data/app/lib/atlas_engine/validation_transcriber/english_street_parser.rb +59 -0
- data/app/lib/atlas_engine/validation_transcriber/formatter.rb +46 -0
- data/app/lib/atlas_engine/validation_transcriber/french_street_parser.rb +50 -0
- data/app/lib/atlas_engine/validation_transcriber/province_code_normalizer.rb +45 -0
- data/app/lib/atlas_engine/validation_transcriber/street_parser.rb +18 -0
- data/app/lib/atlas_engine/validation_transcriber/zip_normalizer.rb +23 -0
- data/app/mailers/atlas_engine/application_mailer.rb +9 -0
- data/app/models/atlas_engine/address_importer/corrections/corrector.rb +33 -0
- data/app/models/atlas_engine/address_importer/import_events_notifier/base.rb +35 -0
- data/app/models/atlas_engine/address_importer/import_events_notifier/notifier.rb +26 -0
- data/app/models/atlas_engine/address_importer/open_address/default_mapper.rb +46 -0
- data/app/models/atlas_engine/address_importer/open_address/feature_helper.rb +110 -0
- data/app/models/atlas_engine/address_importer/open_address/filter.rb +17 -0
- data/app/models/atlas_engine/address_importer/open_address/loader.rb +27 -0
- data/app/models/atlas_engine/address_importer/open_address/transformer.rb +39 -0
- data/app/models/atlas_engine/address_importer/open_address.rb +10 -0
- data/app/models/atlas_engine/address_importer/validation/base_validator.rb +86 -0
- data/app/models/atlas_engine/address_importer/validation/default_validator.rb +27 -0
- data/app/models/atlas_engine/address_importer/validation/field_validations/city.rb +47 -0
- data/app/models/atlas_engine/address_importer/validation/field_validations/interface.rb +29 -0
- data/app/models/atlas_engine/address_importer/validation/field_validations/province.rb +73 -0
- data/app/models/atlas_engine/address_importer/validation/field_validations/zip.rb +84 -0
- data/app/models/atlas_engine/address_importer/validation/validator.rb +17 -0
- data/app/models/atlas_engine/address_importer/validation/wrapper.rb +70 -0
- data/app/models/atlas_engine/address_number.rb +36 -0
- data/app/models/atlas_engine/address_number_range.rb +200 -0
- data/app/models/atlas_engine/address_validation/abstract_address.rb +49 -0
- data/app/models/atlas_engine/address_validation/address.rb +47 -0
- data/app/models/atlas_engine/address_validation/candidate.rb +109 -0
- data/app/models/atlas_engine/address_validation/candidate_tuple.rb +15 -0
- data/app/models/atlas_engine/address_validation/concern.rb +74 -0
- data/app/models/atlas_engine/address_validation/concern_producer.rb +19 -0
- data/app/models/atlas_engine/address_validation/concern_queue.rb +20 -0
- data/app/models/atlas_engine/address_validation/concern_record.rb +122 -0
- data/app/models/atlas_engine/address_validation/datastore_base.rb +27 -0
- data/app/models/atlas_engine/address_validation/errors.rb +13 -0
- data/app/models/atlas_engine/address_validation/es/candidate_selector.rb +70 -0
- data/app/models/atlas_engine/address_validation/es/data_mappers/decompounding_data_mapper.rb +39 -0
- data/app/models/atlas_engine/address_validation/es/data_mappers/default_data_mapper.rb +110 -0
- data/app/models/atlas_engine/address_validation/es/datastore.rb +229 -0
- data/app/models/atlas_engine/address_validation/es/default_query_builder.rb +30 -0
- data/app/models/atlas_engine/address_validation/es/query_builder.rb +160 -0
- data/app/models/atlas_engine/address_validation/es/term_vectors.rb +78 -0
- data/app/models/atlas_engine/address_validation/es/validators/full_address.rb +123 -0
- data/app/models/atlas_engine/address_validation/es/validators/full_address_street.rb +18 -0
- data/app/models/atlas_engine/address_validation/es/validators/restriction_evaluator.rb +37 -0
- data/app/models/atlas_engine/address_validation/field.rb +30 -0
- data/app/models/atlas_engine/address_validation/full_address_validator_base.rb +27 -0
- data/app/models/atlas_engine/address_validation/log_emitter.rb +66 -0
- data/app/models/atlas_engine/address_validation/matching_strategies.rb +16 -0
- data/app/models/atlas_engine/address_validation/normalizer.rb +38 -0
- data/app/models/atlas_engine/address_validation/predicate_pipeline.rb +80 -0
- data/app/models/atlas_engine/address_validation/request.rb +12 -0
- data/app/models/atlas_engine/address_validation/result.rb +154 -0
- data/app/models/atlas_engine/address_validation/runs_validation.rb +16 -0
- data/app/models/atlas_engine/address_validation/session.rb +47 -0
- data/app/models/atlas_engine/address_validation/statsd_emitter.rb +72 -0
- data/app/models/atlas_engine/address_validation/strategies.rb +10 -0
- data/app/models/atlas_engine/address_validation/suggestion.rb +97 -0
- data/app/models/atlas_engine/address_validation/token/comparator.rb +44 -0
- data/app/models/atlas_engine/address_validation/token/comparison.rb +76 -0
- data/app/models/atlas_engine/address_validation/token/sequence/comparator.rb +158 -0
- data/app/models/atlas_engine/address_validation/token/sequence/comparison.rb +166 -0
- data/app/models/atlas_engine/address_validation/token/sequence.rb +147 -0
- data/app/models/atlas_engine/address_validation/token/synonyms.rb +77 -0
- data/app/models/atlas_engine/address_validation/token.rb +113 -0
- data/app/models/atlas_engine/address_validation/validator.rb +147 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/address_comparison.rb +97 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/candidate_result.rb +164 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/candidate_result_base.rb +46 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/comparison_helper.rb +135 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/components_to_validate.rb +88 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/concern_builder.rb +127 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/exclusions/exclusion_base.rb +23 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/invalid_zip_concern_builder.rb +42 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/invalid_zip_for_country_concern.rb +37 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/invalid_zip_for_province_concern.rb +37 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/no_candidate_result.rb +26 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/number_comparison.rb +31 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/postal_code_matcher.rb +60 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/result_updater.rb +42 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/suggestion_builder.rb +140 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/unknown_address_concern.rb +30 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/unknown_province_concern.rb +38 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/unknown_zip_for_address_concern.rb +32 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/unmatched_field_concern.rb +84 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/unsupported_script_result.rb +22 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/cache.rb +38 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/city/present.rb +36 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/country/exists.rb +34 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/country/valid_for_zip.rb +60 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/no_emojis.rb +38 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/no_html_tags.rb +39 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/no_url.rb +38 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/not_exceed_max_length.rb +34 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/not_exceed_max_token_count.rb +63 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/phone/valid.rb +41 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/predicate.rb +37 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/province/exists.rb +43 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/province/valid_for_country.rb +48 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/street/building_number_in_address1.rb +45 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/street/building_number_in_address1_or_address2.rb +43 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/street/present.rb +35 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/zip/present.rb +58 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/zip/valid_for_country.rb +45 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/zip/valid_for_province.rb +55 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/zip/zip_base.rb +25 -0
- data/app/models/atlas_engine/address_validation/zip_truncator.rb +32 -0
- data/app/models/atlas_engine/application_record.rb +8 -0
- data/app/models/atlas_engine/coded_error.rb +18 -0
- data/app/models/atlas_engine/coded_errors.rb +17 -0
- data/app/models/atlas_engine/country_import.rb +44 -0
- data/app/models/atlas_engine/country_profile.rb +270 -0
- data/app/models/atlas_engine/country_profile_ingestion_subset.rb +42 -0
- data/app/models/atlas_engine/country_profile_subset_base.rb +22 -0
- data/app/models/atlas_engine/country_profile_validation_subset.rb +48 -0
- data/app/models/atlas_engine/country_repository.rb +110 -0
- data/app/models/atlas_engine/elasticsearch/client.rb +116 -0
- data/app/models/atlas_engine/elasticsearch/client_interface.rb +89 -0
- data/app/models/atlas_engine/elasticsearch/repository.rb +246 -0
- data/app/models/atlas_engine/elasticsearch/repository_interface.rb +82 -0
- data/app/models/atlas_engine/elasticsearch/response.rb +20 -0
- data/app/models/atlas_engine/event.rb +12 -0
- data/app/models/atlas_engine/field_decompounder.rb +36 -0
- data/app/models/atlas_engine/index_configuration_factory.rb +188 -0
- data/app/models/atlas_engine/post_address.rb +114 -0
- data/app/models/atlas_engine/post_address_importer.rb +34 -0
- data/app/models/atlas_engine/services/service_helper.rb +21 -0
- data/app/models/atlas_engine/services/validation.rb +65 -0
- data/app/models/atlas_engine/services/validation_eligibility.rb +18 -0
- data/app/models/atlas_engine/street.rb +34 -0
- data/app/tasks/maintenance/atlas_engine/elasticsearch_index_create_task.rb +106 -0
- data/app/tasks/maintenance/atlas_engine/geo_json_import_task.rb +29 -0
- data/app/views/atlas_engine/connectivity/index.html.erb +50 -0
- data/app/views/atlas_engine/country_imports/index.html.erb +49 -0
- data/app/views/atlas_engine/country_imports/show.html.erb +73 -0
- data/app/views/layouts/atlas_engine/application.html.erb +15 -0
- data/config/initializers/1.ruby_patches.rb +18 -0
- data/config/initializers/sorbet.rb +5 -0
- data/config/initializers/worldwide.rb +5 -0
- data/config/locales/internal/en.yml +14 -0
- data/config/routes.rb +17 -0
- data/db/data/address_synonyms/index_configurations/default.yml +141 -0
- data/db/data/country_profiles/default.yml +23 -0
- data/db/data/transcriber.yml +760 -0
- data/db/data/validation_pipelines/es.yml +58 -0
- data/db/data/validation_pipelines/es_street.yml +58 -0
- data/db/data/validation_pipelines/local.yml +60 -0
- data/db/migrate/20230919173037_create_atlas_engine_post_addresses.rb +25 -0
- data/db/migrate/20231117142735_add_building_and_unit_ranges_column.rb +7 -0
- data/db/migrate/20231117143536_create_atlas_engine_country_imports.rb +11 -0
- data/db/migrate/20231117145844_create_atlas_engine_events_table.rb +13 -0
- data/db/migrate/20231123153554_add_unique_index_to_atlas_engine_post_addresses.rb +14 -0
- data/db/migrate/20231123154658_add_index_to_post_addresses_on_source_id_locale_country_code.rb +12 -0
- data/lib/atlas_engine/engine.rb +10 -0
- data/lib/atlas_engine/version.rb +6 -0
- data/lib/atlas_engine.rb +66 -0
- data/lib/tasks/atlas_engine/address_importer.rake +20 -0
- metadata +553 -0
@@ -0,0 +1,350 @@
|
|
1
|
+
city_synonyms:
|
2
|
+
- east, e
|
3
|
+
- north, n
|
4
|
+
- northeast, north-east, ne
|
5
|
+
- northwest, north-west, nw
|
6
|
+
- south, s
|
7
|
+
- southeast, south-east, se
|
8
|
+
- southwest, south-west, sw
|
9
|
+
- west, w
|
10
|
+
- fort, ft
|
11
|
+
- mount, mt
|
12
|
+
- point, pt
|
13
|
+
- saint, st
|
14
|
+
- township, twp
|
15
|
+
- air force base, afb
|
16
|
+
street_synonyms:
|
17
|
+
- east, e
|
18
|
+
- north, n
|
19
|
+
- northeast, north-east, n-east, ne
|
20
|
+
- northwest, north-west, n-west, nw
|
21
|
+
- south, s
|
22
|
+
- southeast, south-east, s-east, se
|
23
|
+
- southwest, south-west, s-west, sw
|
24
|
+
- west, w
|
25
|
+
- first, 1st
|
26
|
+
- second, 2nd
|
27
|
+
- third, 3rd
|
28
|
+
- fourth, 4th
|
29
|
+
- fifth, 5th
|
30
|
+
- sixth, 6th
|
31
|
+
- seventh, 7th
|
32
|
+
- eighth, 8th
|
33
|
+
- ninth, 9th
|
34
|
+
- tenth, 10th
|
35
|
+
- eleventh, 11th
|
36
|
+
- twelfth, 12th
|
37
|
+
- thirteenth, 13th
|
38
|
+
- fourteenth, 14th
|
39
|
+
- fifteenth, 15th
|
40
|
+
- sixteenth, 16th
|
41
|
+
- seventeenth, 17th
|
42
|
+
- eighteenth, 18th
|
43
|
+
- nineteenth, 19th
|
44
|
+
- twentieth, 20th
|
45
|
+
- thirtieth, 30th
|
46
|
+
- fortieth, 40th
|
47
|
+
- fiftieth, 50th
|
48
|
+
- sixtieth, 60th
|
49
|
+
- seventieth, 70th
|
50
|
+
- eightieth, 80th
|
51
|
+
- nintieth, 90th
|
52
|
+
- one hundredth, 100th
|
53
|
+
- ten, 10
|
54
|
+
- twenty, 20
|
55
|
+
- thirty, 30
|
56
|
+
- fourty, 40
|
57
|
+
- fifty, 50
|
58
|
+
- sixty, 60
|
59
|
+
- seventy, 70
|
60
|
+
- eighty, 80
|
61
|
+
- ninety, 90
|
62
|
+
- one hundred, 100
|
63
|
+
- county road, county rd, cnty road, cnty rd, cty road, cty rd, cr
|
64
|
+
- farm to market, hwy fm, fm
|
65
|
+
- state road, state rd, st road, sr
|
66
|
+
- state route, state rte, st rte, st rt, sr
|
67
|
+
- township road, township rd, twp road, twp rd, tsr
|
68
|
+
- private road, pr
|
69
|
+
- county, cnty, cty
|
70
|
+
- interstate, i
|
71
|
+
- saint, st
|
72
|
+
- state, st
|
73
|
+
- township, twp
|
74
|
+
- alabama, al
|
75
|
+
- kentucky, ky
|
76
|
+
- ohio, oh
|
77
|
+
- alaska, ak
|
78
|
+
- louisiana, la
|
79
|
+
- oklahoma, ok
|
80
|
+
- arizona, az
|
81
|
+
- maine, me
|
82
|
+
- oregon, or
|
83
|
+
- arkansas, ar
|
84
|
+
- maryland, md
|
85
|
+
- pennsylvania, pa
|
86
|
+
- american samoa, as
|
87
|
+
- massachusetts, ma
|
88
|
+
- puerto rico, pr
|
89
|
+
- california, ca
|
90
|
+
- michigan, mi
|
91
|
+
- rhode island, ri
|
92
|
+
- colorado, co
|
93
|
+
- minnesota, mn
|
94
|
+
- south carolina, sc
|
95
|
+
- connecticut, ct
|
96
|
+
- mississippi, ms
|
97
|
+
- south dakota, sd
|
98
|
+
- delaware, de
|
99
|
+
- missouri, mo
|
100
|
+
- tennessee, tn
|
101
|
+
- district of columbia, dc
|
102
|
+
- montana, mt
|
103
|
+
- texas, tx
|
104
|
+
- florida, fl
|
105
|
+
- nebraska, ne
|
106
|
+
- trust territories, tt
|
107
|
+
- georgia, ga
|
108
|
+
- nevada, nv
|
109
|
+
- utah, ut
|
110
|
+
- guam, gu
|
111
|
+
- new hampshire, nh
|
112
|
+
- vermont, vt
|
113
|
+
- hawaii, hi
|
114
|
+
- new jersey, nj
|
115
|
+
- virginia, va
|
116
|
+
- idaho, id
|
117
|
+
- new mexico, nm
|
118
|
+
- virgin islands, vi
|
119
|
+
- illinois, il
|
120
|
+
- new york, ny
|
121
|
+
- washington, wa
|
122
|
+
- indiana, in
|
123
|
+
- north carolina, nc
|
124
|
+
- west virginia, wv
|
125
|
+
- iowa, ia
|
126
|
+
- north dakota, nd
|
127
|
+
- wisconsin, wi
|
128
|
+
- kansas, ks
|
129
|
+
- northern mariana islands, mp
|
130
|
+
- wyoming, wy
|
131
|
+
- allee, aly
|
132
|
+
- alley, ally, aly
|
133
|
+
- annex, annx, anex, anx
|
134
|
+
- arcade, arc
|
135
|
+
- avenue, avenu, aven, av, ave
|
136
|
+
- bayoo, byu
|
137
|
+
- bayou, byu
|
138
|
+
- beach, bch
|
139
|
+
- bend, bnd
|
140
|
+
- bluff, bluf, blf
|
141
|
+
- bluffs, blfs
|
142
|
+
- bottom, bottm, bot, btm
|
143
|
+
- boulevard, boulv, boul, blvd
|
144
|
+
- branch, brnch, br
|
145
|
+
- bridge, brdge, brg
|
146
|
+
- brook, brk
|
147
|
+
- brooks, brks
|
148
|
+
- burg, bg
|
149
|
+
- burgs, bgs
|
150
|
+
- bypass, bypas, bypa, byps, byp
|
151
|
+
- camp, cmp, cp
|
152
|
+
- canyon, canyn, cnyn, cyn
|
153
|
+
- cape, cpe
|
154
|
+
- causeway, causewa, cswy
|
155
|
+
- center, centr, cent, cen, cnter, cntr, ctr
|
156
|
+
- centre, ctr
|
157
|
+
- centers, ctrs
|
158
|
+
- circle, circl, circ, crcle, crcl, cir
|
159
|
+
- circles, cirs
|
160
|
+
- cliff, clf
|
161
|
+
- cliffs, clfs
|
162
|
+
- club, clb
|
163
|
+
- common, cmn
|
164
|
+
- commons, cmns
|
165
|
+
- corner, cor
|
166
|
+
- corners, cors
|
167
|
+
- course, crse
|
168
|
+
- court, ct
|
169
|
+
- courts, cts
|
170
|
+
- cove, cv
|
171
|
+
- coves, cvs
|
172
|
+
- creek, crk
|
173
|
+
- crescent, crsent, crsnt, cres
|
174
|
+
- crest, crst
|
175
|
+
- crossing, crssing, xing
|
176
|
+
- crossroad, xrd
|
177
|
+
- crossroads, xrds
|
178
|
+
- curve, curv
|
179
|
+
- dale, dl
|
180
|
+
- dam, dm
|
181
|
+
- divide, div, dvd, dv
|
182
|
+
- drive, driv, drv, dr
|
183
|
+
- drives, drs
|
184
|
+
- estate, est
|
185
|
+
- estates, ests
|
186
|
+
- exp, expy
|
187
|
+
- expr, expy
|
188
|
+
- express, expy
|
189
|
+
- expressway, express, expr, expw, exp, expy
|
190
|
+
- extension, extnsn, extn, ext
|
191
|
+
- falls, fls
|
192
|
+
- ferry, frry, fry
|
193
|
+
- field, fld
|
194
|
+
- fields, flds
|
195
|
+
- flat, flt
|
196
|
+
- flats, flts
|
197
|
+
- ford, frd
|
198
|
+
- fords, frds
|
199
|
+
- forest, forests, frst
|
200
|
+
- forge, forg, frg
|
201
|
+
- forges, frgs
|
202
|
+
- fork, frk
|
203
|
+
- forks, frks
|
204
|
+
- fort, frt, ft
|
205
|
+
- freeway, freewy, frway, frwy, fwy
|
206
|
+
- garden, gardn, grden, grdn, gdn
|
207
|
+
- gardens, grdns, gdns
|
208
|
+
- gateway, gatewy, gatway, gtway, gtwy
|
209
|
+
- glen, gln
|
210
|
+
- glens, glns
|
211
|
+
- green, grn
|
212
|
+
- greens, grns
|
213
|
+
- grove, grov, grv
|
214
|
+
- groves, grvs
|
215
|
+
- harbor, harbr, harb, hrbor, hbr
|
216
|
+
- harbors, hbrs
|
217
|
+
- haven, hvn
|
218
|
+
- heights, ht, hts
|
219
|
+
- highway, highwy, hiway, hiwy, hway, hwy
|
220
|
+
- hill, hl
|
221
|
+
- hills, hls
|
222
|
+
- hollow, hollows, holws, hllw, holw
|
223
|
+
- inlet, inlt
|
224
|
+
- island, islnd, is
|
225
|
+
- islands, islnds, iss
|
226
|
+
- isles, isle
|
227
|
+
- junction, juncton, junctn, jction, jctn, jct
|
228
|
+
- junctions, jctns, jcts
|
229
|
+
- key, ky
|
230
|
+
- keys, kys
|
231
|
+
- knoll, knol, knl
|
232
|
+
- knolls, knls
|
233
|
+
- lake, lk
|
234
|
+
- lakes, lks
|
235
|
+
- landing, lndng, lndg
|
236
|
+
- lane, ln
|
237
|
+
- light, lgt
|
238
|
+
- lights, lgts
|
239
|
+
- loaf, lf
|
240
|
+
- lock, lck
|
241
|
+
- locks, lcks
|
242
|
+
- lodge, lodg, ldge, ldg
|
243
|
+
- loops, loop
|
244
|
+
- manor, mnr
|
245
|
+
- manors, mnrs
|
246
|
+
- meadow, mdw
|
247
|
+
- meadows, medows, mdw, mdws
|
248
|
+
- mill, ml
|
249
|
+
- mills, mls
|
250
|
+
- mission, missn, mssn, msn
|
251
|
+
- motorway, mtwy
|
252
|
+
- mount, mnt, mt
|
253
|
+
- mountain, mountin, mntain, mntn, mtin, mtn
|
254
|
+
- mountains, mntns, mtns
|
255
|
+
- neck, nck
|
256
|
+
- orchard, orchrd, orch
|
257
|
+
- ovl, oval
|
258
|
+
- overpass, opas
|
259
|
+
- park, prk
|
260
|
+
- parks, park
|
261
|
+
- parkway, parkwy, pkway, pky, pkwy
|
262
|
+
- parkways, pkwys, pkwy
|
263
|
+
- passage, psge
|
264
|
+
- paths, path
|
265
|
+
- pikes, pike
|
266
|
+
- pine, pne
|
267
|
+
- pines, pnes
|
268
|
+
- place, pl
|
269
|
+
- plain, pln
|
270
|
+
- plains, plns
|
271
|
+
- plaza, plza, plz
|
272
|
+
- point, pt
|
273
|
+
- points, pts
|
274
|
+
- port, prt
|
275
|
+
- ports, prts
|
276
|
+
- prairie, prr, pr
|
277
|
+
- radial, rad, radl
|
278
|
+
- radiel, radl
|
279
|
+
- ranch, ranches, rnchs, rnch
|
280
|
+
- rapid, rpd
|
281
|
+
- rapids, rpds
|
282
|
+
- rest, rst
|
283
|
+
- ridge, rdge, rdg
|
284
|
+
- ridges, rdgs
|
285
|
+
- river, rivr, rvr, riv
|
286
|
+
- road, rd
|
287
|
+
- roads, rds
|
288
|
+
- route, rt, rte
|
289
|
+
- shoal, shl
|
290
|
+
- shoals, shls, shls
|
291
|
+
- shoar, shr
|
292
|
+
- shore, shr
|
293
|
+
- shoars, shrs
|
294
|
+
- shores, shrs
|
295
|
+
- skyway, skwy
|
296
|
+
- spring, sprng, spng, spg
|
297
|
+
- springs, sprngs, spngs, spgs
|
298
|
+
- square, squa, sqre, sqr, sq
|
299
|
+
- squares, sqrs, sqs
|
300
|
+
- station, statn, stn, sta
|
301
|
+
- stravenue, straven, stravn, strav, strvnue, strvn, stra
|
302
|
+
- stream, strm
|
303
|
+
- streme, strm
|
304
|
+
- street, strt, str, st
|
305
|
+
- streets, sts
|
306
|
+
- summit, sumitt, sumit, smt
|
307
|
+
- terrace, terr, ter
|
308
|
+
- throughway, trwy
|
309
|
+
- trace, traces, trce
|
310
|
+
- track, tracks, trks, trk, trak
|
311
|
+
- trafficway, trfy
|
312
|
+
- trail, trails, trls, trl
|
313
|
+
- trailer, trlrs, trlr
|
314
|
+
- tunnel, tunnels, tunnl, tunel, tunls, tunl
|
315
|
+
- turnpike, turnpk, trnpk, tpke
|
316
|
+
- underpass, upas
|
317
|
+
- union, un
|
318
|
+
- unions, uns
|
319
|
+
- valley, vally, vlly, vly
|
320
|
+
- valleys, vlys
|
321
|
+
- viaduct, viadct, vdct, via
|
322
|
+
- view, vw
|
323
|
+
- views, vws
|
324
|
+
- village, villag, vill, villiage, villg, vlg
|
325
|
+
- villages, villiages, vlgs
|
326
|
+
- ville, vl
|
327
|
+
- vista, vist, vsta, vst, vis
|
328
|
+
- walks, walk
|
329
|
+
- well, wl
|
330
|
+
- wy, way
|
331
|
+
- wells, wls
|
332
|
+
- avenida, ave
|
333
|
+
- calle, cll
|
334
|
+
- caminito, cmt
|
335
|
+
- camino, cam
|
336
|
+
- cerrada, cer
|
337
|
+
- circulo, cir
|
338
|
+
- entrada, ent
|
339
|
+
- paseo, pso
|
340
|
+
- placita, pla
|
341
|
+
- rancho, rch
|
342
|
+
- vereda, ver
|
343
|
+
- barriada, bda
|
344
|
+
- jardines, jard
|
345
|
+
- parcelas, parc
|
346
|
+
- residencial, res
|
347
|
+
- sector, sect, sec
|
348
|
+
- urbanization, urb
|
349
|
+
- doctor, dr
|
350
|
+
- air force base, afb
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# typed: false
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module AtlasEngine
|
5
|
+
module Errors
|
6
|
+
class LocaleUnsupportedError < GraphQL::ExecutionError
|
7
|
+
def to_h
|
8
|
+
super.merge(
|
9
|
+
"extensions" => {
|
10
|
+
"code" => "LOCALE_UNSUPPORTED",
|
11
|
+
"attribute" => "locale",
|
12
|
+
},
|
13
|
+
)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|