here.content.hmc2.parsers module — HERE Data SDK for Python documentation
- Last UpdatedMar 27, 2025
- 13 minute read
Parser functions for parsing HMC Object Types and parameters within them.
- here.content.hmc2.parsers.parse_addresses(data, param: str, dto: DTO) List[Address] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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)[source]#
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(dt: str) str [source]#
Parser function to parse datetimes.
- Parameters:
dt – 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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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 [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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] [source]#
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.