Implementation of a tracking number parser that uses these json files. Please check that your chosen programming language does not already have an.Library to get information out of tracking numbers. If you are using this repo, it is most likely because you are writing a We suggest you check these out before rolling your own implementation. Using this repo: List of Libraries using this repository, by Language Look at existing examples for parameters.Įach hash in the lookup array should contain a key called matches or matces_regex, specifying how the value of regex_group_name should be compared. Supported algorithms and parameters are mod10, mod7, s10, and sum_product_with_weightings_and_modulo. checksum: if the tracking number has a checksum, include a checksum key with the details.Validation - Specifies how the tracking number is validated DestinationZip: indicating the destination zip code.ServiceType: indicating the type of delivery service.Regex - A pcre compatible regular expression that identifies the tracking number regardless of spaces in-between characters.Įvery regex must contain the named groups SerialNumber and CheckDigit and depending on the tracking number can optionally contain the following common attributes: Usually includes the carrier in the name, i.e. Name - A name to identify this type of tracking number. tracking_numbers - an array of possible tracking number formats for this courierĮach tracking number type is defined by a json hash with the following keys:.courier_code - short code to identify the courier.couriers/*.json - identifies the standard couriers that might send mailĮach courier is defined by json hash with the following keys. ![]() SerialNumber CheckDigit RoutingApplicationId DestinationZip SCNC ServiceType ShipperId PackageId SerialNumber CheckDigit ApplicationIdentifier SCNC GSNĪpplicationIdentifier``SerialNumber, CheckDigit, ServiceType, ShipperId, PackageId SerialNumber CheckDigit ApplicationIdentifier SCNC ServiceType ShipperID PackageId SerialNumber CheckDigit ShippingContainerType ![]() SerialNumber CheckDigit Countr圜ode ServiceType SerialNumber CheckDigit ShipperId ServiceType PackageId This repository contains json files that programatically describe how to detect, validate, and decode the following types of tracking numbers: Supported Tracking Numbers Carrier / Type
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |