here.content.hmc2.parsers module
here.content.hmc2.parsers module
Parser functions for parsing HMC Object Types and parameters within them.
here.content.hmc2.parsers.parse_addresses(data, param: str, dto: DTO) List[Address]
Parser function to parse addresses.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Addresses.
here.content.hmc2.parsers.parse_affiliation_attributes(data, param: str, dto: DTO) List[AffiliationAttribute]
Parser function to parse affiliation attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Affiliation Attributes.
here.content.hmc2.parsers.parse_alcohol_service_attributes(data, param: str, dto: DTO) List[AlcoholServiceAttribute]
Parser function to parse alcohol service attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Alcohol Service Attributes.
here.content.hmc2.parsers.parse_amenities_attributes(data, param: str, dto: DTO) List[AmenitiesAttribute]
Parser function to parse amenities attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Amenities Attributes.
here.content.hmc2.parsers.parse_authors(data, param: str, dto: DTO) List[Author]
Parser function to parse authors.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Authors.
here.content.hmc2.parsers.parse_basic_info_attributes(data, param: str, dto: DTO) List[BasicInfoAttribute]
Parser function to parse basic information attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Basic Information Attributes.
here.content.hmc2.parsers.parse_black_spots(data, param: str, dto: DTO) List[BlackSpot]
Parser function to parse black spots.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Black Spots.
here.content.hmc2.parsers.parse_capacity_attribute(data, param: str, dto: DTO) List[CapacityAttribute]
Parser function to parse capacity attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Capacity Attributes.
here.content.hmc2.parsers.parse_categories(data, param) List[Ref]
Parser function to parse categories.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
Returns:
List of Category references.
here.content.hmc2.parsers.parse_contact_information(data, param: str, dto: DTO) List[ContactInformation]
Parser function to parse contact information.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Contact Information.
here.content.hmc2.parsers.parse_contacts(data, param: str)
Parser function to parse contacts.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
Returns:
List of Contacts.
here.content.hmc2.parsers.parse_datetime(date_str: str) str
Parser function to parse datetimes.
Parameters:
date_str – Datetime in string format.
Returns:
Data parsed in datetime object.
here.content.hmc2.parsers.parse_electric_charge_attributes(data, param: str, dto: DTO) List[ElectricChargeAttribute]
Parser function to parse electric charge attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Electric Charge Attributes.
here.content.hmc2.parsers.parse_external_identifiers(data, param: str, dto: DTO) List[ExternalIdentifier]
Parser function to parse external identifiers.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of External Identifiers.
here.content.hmc2.parsers.parse_feedbacks(data, param: str, dto: DTO) List[Feedback]
Parser function to parse feedbacks.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Feedbacks.
here.content.hmc2.parsers.parse_fuel_type_attributes(data, param: str, dto: DTO) List[FuelTypeAttribute]
Parser function to parse fuel type attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Fuel Type Attributes.
here.content.hmc2.parsers.parse_hotel_attributes(data, param: str, dto: DTO) List[HotelAttribute]
Parser function to parse hotel attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Hotel Attributes.
here.content.hmc2.parsers.parse_internet_connection_atttributes(data, param: str, dto: DTO) List[InternetConnectionAttribute]
Parser function to parse internet connection attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Internet Connection Attributes.
here.content.hmc2.parsers.parse_location_information(data, param: str, dto: DTO) List[LocationInformation]
Parser function to parse location information.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Location Information.
here.content.hmc2.parsers.parse_locations(data, param: str, dto: DTO) List[Location]
Parser function to parse locations.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Locations.
here.content.hmc2.parsers.parse_match_level_attribute(data, param: str, dto: DTO) List[MatchLevelAttribute]
Parser function to parse match level attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Match Level Attributes.
here.content.hmc2.parsers.parse_media_reference_attributes(data, param: str, dto: DTO) List[MediaReferenceAttribute]
Parser function to parse media reference attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Media Reference Attributes.
here.content.hmc2.parsers.parse_media_references(data, param: str) List[MediaReference]
Parser function to parse media references.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
Returns:
List of Media References.
here.content.hmc2.parsers.parse_names(data, param: str) List[Name]
Parser function to parse names.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
Returns:
List of Names.
here.content.hmc2.parsers.parse_note_type_attributes(data, param: str, dto: DTO) List[NoteTypeAttribute]
Parser function to parse note type attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Note Type Attributes.
here.content.hmc2.parsers.parse_office_type_attributes(data, param: str, dto: DTO) List[OfficeTypeAttribute]
Parser function to parse office type attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Office Type Attributes.
here.content.hmc2.parsers.parse_operating_times(data, param, dto: DTO) List[OperatingTime]
Parser function to parse operating times.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Operating Times.
here.content.hmc2.parsers.parse_operation_times(data, param: str) List[OperationTime]
Parser function to parse operation times.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
Returns:
List of Operation Times.
here.content.hmc2.parsers.parse_other_information(data, param: str, dto: DTO) List[OtherInformation]
Parser function to parse other information.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Other Information.
here.content.hmc2.parsers.parse_parking_attributes(data, param: str, dto: DTO) List[ParkingAttribute]
Parser function to parse parking attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Parking Attributes.
here.content.hmc2.parsers.parse_payments(data, param: str, dto: DTO) List[Payment]
Parser function to parse payments.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Suppliers.
here.content.hmc2.parsers.parse_place_access_attributes(data, param: str, dto: DTO) List[PlaceAccessAttribute]
Parser function to parse place access attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Place Access Attributes.
here.content.hmc2.parsers.parse_place_catagory_confidence_attributes(data, param: str, dto: DTO) List[PlaceCategoryConfidenceAttribute]
Parser function to parse place category confidence attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Place Category Confidence Attributes.
here.content.hmc2.parsers.parse_places(data, param: str, dto: DTO) List[Place]
Parser function to parse places.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Places.
here.content.hmc2.parsers.parse_populatity_attributes(data, param: str, dto: DTO) List[PopularityAttribute]
Parser function to parse popularity attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Popularity Attributes.
here.content.hmc2.parsers.parse_port_attributes(data, param: str, dto: DTO) List[PortAttribute]
Parser function to parse port attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Port Attributes.
here.content.hmc2.parsers.parse_postal_codes(data, param: str) List[PostalCode]
Parser function to parse postal codes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
Returns:
List of Postal Codes.
here.content.hmc2.parsers.parse_price_ranges(data, param: str, dto: DTO) List[PriceRange]
Parser function to parse price ranges.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Price Ranges.
here.content.hmc2.parsers.parse_qr_code_attributes(data, param: str, dto: DTO) List[QrCodeAttribute]
Parser function to parse QR code attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of QR Code Attributes.
here.content.hmc2.parsers.parse_qualifiers(data, param: str) List[Qualifier]
Parser function to parse qualifiers.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
Returns:
List of Qualifiers.
here.content.hmc2.parsers.parse_quality_scores(data, param: str, dto: DTO) List[QualityScore]
Parser function to parse quality scores.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Quality Scores.
here.content.hmc2.parsers.parse_relationship_attributes(data, param: str, dto: DTO) List[RelationshipAttribute]
Parser function to parse relation attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Relation Attributes.
here.content.hmc2.parsers.parse_relationships(data, param: str) List[Relationship]
Parser function to parse relationships.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
Returns:
List of Relationships.
here.content.hmc2.parsers.parse_restaurant_attributes(data, param: str, dto: DTO) List[RestaurantAttribute]
Parser function to parse restaurant attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Restaurant Attributes.
here.content.hmc2.parsers.parse_safety_cameras(data, param: str, dto: DTO) List[SafetyCamera]
Parser function to parse port cameras.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Safety Cameras.
here.content.hmc2.parsers.parse_simple_object_types(data, param: str, dto: DTO, object_type_class: type) List
Parser function to parse simple object types.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
-
object_type_class – class type in which list item needs to be parsed.
Returns:
List of items of type :param:object_type_class.
here.content.hmc2.parsers.parse_social_signals(data, param: str, dto: DTO) List[SocialSignal]
Parser function to parse social signals.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Social Signals.
here.content.hmc2.parsers.parse_spoken_languages(data, param: str, dto: DTO) List[SpokenLanguage]
Parser function to parse spoken languages.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Spoken Languages.
here.content.hmc2.parsers.parse_suppliers(data, param: str, dto: DTO) List[Supplier]
Parser function to parse suppliers.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Suppliers.
here.content.hmc2.parsers.parse_transit_attributes(data, param: str, dto: DTO) List[TransitAttribute]
Parser function to parse transit attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Transit Attributes.
here.content.hmc2.parsers.parse_truck_attributes(data, param: str, dto: DTO) List[TruckAttribute]
Parser function to parse truck attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Truck Attributes.
here.content.hmc2.parsers.parse_vehicle_services_attributes(data, param: str, dto: DTO) List[VehicleServicesAttribute]
Parser function to parse vehicle service attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Vehicle Service Attributes.
here.content.hmc2.parsers.parse_vendor_url_attributes(data, param: str, dto: DTO) List[VendorUrlAttribute]
Parser function to parse vendor URL attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Vendor URL Attributes.
here.content.hmc2.parsers.parse_verification_attributes(data, param: str, dto: DTO) List[VerificationAttribute]
Parser function to parse verification attributes.
Parameters:
-
data – Object that contains :param:param.
-
param – Parameter that needs to be parsed from :param:data.
-
dto – Data Transfer Object that carries dynamic values.
Returns:
List of Verification Attributes.