PageSourceSearch

https://cdn.efleets.com/efm_shared/angular-commons/1.0.0.38/javascript/services/addressCleanseService.js

js efleets.com collected 2026-09-28 08:46:59 UTC 888 bytes, 19 lines download raw bytes

1'use strict';
2
3angular.module('addressCleanseServices', []).factory('AddressCleanse', ['$q','$http', function($q,$http){
4		'use strict';
5
6		return {
7			lookupAddress: function (url, address1, address2, city, state, zip, country) {
8                var countryCode = (country == "US" ? "USA" : (country == "CA" ? "CAN" : country));				
9				return $http.post(url, {"addressLine1" : address1, "addressLine2" : address2, "city" : city, "stateProvinceCode" : state, "postalCode" : zip, "country" : countryCode});
10			},
11			getBaseUrl : function(env) {
12				if (env && env.toUpperCase() == 'PRD') {
13                    return "https://addresses.prd.aws.efleets.com/addresses/v1/cleanseAddress";
14                } else {
15                    return "https://addresses-" + env + ".dev.aws.efleets.com/addresses/v1/cleanseAddress";
16                }
17            }
18        };
19  }]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.