UNPKG

azure-maps-rest

Version:

SDK for Azure Maps REST Services

1,695 lines (1,690 loc) 483 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var msRest = require('@azure/ms-rest-js'); var msRestAzure = require('@azure/ms-rest-azure-js'); /* * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ /** * Defines values for EntityType. * Possible values include: 'Country', 'CountrySubdivision', 'CountrySecondarySubdivision', * 'CountryTertiarySubdivision', 'Municipality', 'MunicipalitySubdivision', 'Neighbourhood', * 'PostalCodeArea' * @readonly * @enum {string} */ var EntityType; (function (EntityType) { /** * Country name */ EntityType["Country"] = "Country"; /** * State or Province */ EntityType["CountrySubdivision"] = "CountrySubdivision"; /** * County */ EntityType["CountrySecondarySubdivision"] = "CountrySecondarySubdivision"; /** * Named Area */ EntityType["CountryTertiarySubdivision"] = "CountryTertiarySubdivision"; /** * City / Town */ EntityType["Municipality"] = "Municipality"; /** * Sub / Super City */ EntityType["MunicipalitySubdivision"] = "MunicipalitySubdivision"; /** * Neighbourhood */ EntityType["Neighbourhood"] = "Neighbourhood"; /** * Postal Code / Zip Code */ EntityType["PostalCodeArea"] = "PostalCodeArea"; })(EntityType || (EntityType = {})); /** * Defines values for MagnitudeOfDelay. * Possible values include: '0', '1', '2', '3', '4' * @readonly * @enum {string} */ var MagnitudeOfDelay; (function (MagnitudeOfDelay) { /** * Unknown. */ MagnitudeOfDelay["Zero"] = "0"; /** * Minor. */ MagnitudeOfDelay["One"] = "1"; /** * Moderate. */ MagnitudeOfDelay["Two"] = "2"; /** * Major. */ MagnitudeOfDelay["Three"] = "3"; /** * Undefined, used for road closures and other indefinite delays. */ MagnitudeOfDelay["Four"] = "4"; })(MagnitudeOfDelay || (MagnitudeOfDelay = {})); /** * Defines values for GuidanceInstructionType. * Possible values include: 'TURN', 'ROAD_CHANGE', 'LOCATION_DEPARTURE', 'LOCATION_ARRIVAL', * 'DIRECTION_INFO', 'LOCATION_WAYPOINT' * @readonly * @enum {string} */ var GuidanceInstructionType; (function (GuidanceInstructionType) { /** * Turn. */ GuidanceInstructionType["TURN"] = "TURN"; /** * Road Change. */ GuidanceInstructionType["ROADCHANGE"] = "ROAD_CHANGE"; /** * Departure location. */ GuidanceInstructionType["LOCATIONDEPARTURE"] = "LOCATION_DEPARTURE"; /** * Arrival location. */ GuidanceInstructionType["LOCATIONARRIVAL"] = "LOCATION_ARRIVAL"; /** * Direction information. */ GuidanceInstructionType["DIRECTIONINFO"] = "DIRECTION_INFO"; /** * Way point location. */ GuidanceInstructionType["LOCATIONWAYPOINT"] = "LOCATION_WAYPOINT"; })(GuidanceInstructionType || (GuidanceInstructionType = {})); /** * Defines values for DrivingSide. * Possible values include: 'LEFT', 'RIGHT' * @readonly * @enum {string} */ var DrivingSide; (function (DrivingSide) { /** * Left side. */ DrivingSide["LEFT"] = "LEFT"; /** * Right side. */ DrivingSide["RIGHT"] = "RIGHT"; })(DrivingSide || (DrivingSide = {})); /** * Defines values for GuidanceManeuver. * Possible values include: 'ARRIVE', 'ARRIVE_LEFT', 'ARRIVE_RIGHT', 'DEPART', 'STRAIGHT', * 'KEEP_RIGHT', 'BEAR_RIGHT', 'TURN_RIGHT', 'SHARP_RIGHT', 'KEEP_LEFT', 'BEAR_LEFT', 'TURN_LEFT', * 'SHARP_LEFT', 'MAKE_UTURN', 'ENTER_MOTORWAY', 'ENTER_FREEWAY', 'ENTER_HIGHWAY', 'TAKE_EXIT', * 'MOTORWAY_EXIT_LEFT', 'MOTORWAY_EXIT_RIGHT', 'TAKE_FERRY', 'ROUNDABOUT_CROSS', * 'ROUNDABOUT_RIGHT', 'ROUNDABOUT_LEFT', 'ROUNDABOUT_BACK', 'TRY_MAKE_UTURN', 'FOLLOW', * 'SWITCH_PARALLEL_ROAD', 'SWITCH_MAIN_ROAD', 'ENTRANCE_RAMP', 'WAYPOINT_LEFT', 'WAYPOINT_RIGHT', * 'WAYPOINT_REACHED' * @readonly * @enum {string} */ var GuidanceManeuver; (function (GuidanceManeuver) { /** * You have arrived. */ GuidanceManeuver["ARRIVE"] = "ARRIVE"; /** * You have arrived. Your destination is on the left. */ GuidanceManeuver["ARRIVELEFT"] = "ARRIVE_LEFT"; /** * You have arrived. Your destination is on the right. */ GuidanceManeuver["ARRIVERIGHT"] = "ARRIVE_RIGHT"; /** * Leave. */ GuidanceManeuver["DEPART"] = "DEPART"; /** * Keep straight on. */ GuidanceManeuver["STRAIGHT"] = "STRAIGHT"; /** * Keep right. */ GuidanceManeuver["KEEPRIGHT"] = "KEEP_RIGHT"; /** * Bear right. */ GuidanceManeuver["BEARRIGHT"] = "BEAR_RIGHT"; /** * Turn right. */ GuidanceManeuver["TURNRIGHT"] = "TURN_RIGHT"; /** * Turn sharp right. */ GuidanceManeuver["SHARPRIGHT"] = "SHARP_RIGHT"; /** * Keep left. */ GuidanceManeuver["KEEPLEFT"] = "KEEP_LEFT"; /** * Bear left. */ GuidanceManeuver["BEARLEFT"] = "BEAR_LEFT"; /** * Turn left. */ GuidanceManeuver["TURNLEFT"] = "TURN_LEFT"; /** * Turn sharp left. */ GuidanceManeuver["SHARPLEFT"] = "SHARP_LEFT"; /** * Make a U-turn. */ GuidanceManeuver["MAKEUTURN"] = "MAKE_UTURN"; /** * Take the motorway. */ GuidanceManeuver["ENTERMOTORWAY"] = "ENTER_MOTORWAY"; /** * Take the freeway. */ GuidanceManeuver["ENTERFREEWAY"] = "ENTER_FREEWAY"; /** * Take the highway. */ GuidanceManeuver["ENTERHIGHWAY"] = "ENTER_HIGHWAY"; /** * Take the exit. */ GuidanceManeuver["TAKEEXIT"] = "TAKE_EXIT"; /** * Take the left exit. */ GuidanceManeuver["MOTORWAYEXITLEFT"] = "MOTORWAY_EXIT_LEFT"; /** * Take the right exit. */ GuidanceManeuver["MOTORWAYEXITRIGHT"] = "MOTORWAY_EXIT_RIGHT"; /** * Take the ferry. */ GuidanceManeuver["TAKEFERRY"] = "TAKE_FERRY"; /** * Cross the roundabout. */ GuidanceManeuver["ROUNDABOUTCROSS"] = "ROUNDABOUT_CROSS"; /** * At the roundabout take the exit on the right. */ GuidanceManeuver["ROUNDABOUTRIGHT"] = "ROUNDABOUT_RIGHT"; /** * At the roundabout take the exit on the left. */ GuidanceManeuver["ROUNDABOUTLEFT"] = "ROUNDABOUT_LEFT"; /** * Go around the roundabout. */ GuidanceManeuver["ROUNDABOUTBACK"] = "ROUNDABOUT_BACK"; /** * Try to make a U-turn. */ GuidanceManeuver["TRYMAKEUTURN"] = "TRY_MAKE_UTURN"; /** * Follow. */ GuidanceManeuver["FOLLOW"] = "FOLLOW"; /** * Switch to the parallel road. */ GuidanceManeuver["SWITCHPARALLELROAD"] = "SWITCH_PARALLEL_ROAD"; /** * Switch to the main road. */ GuidanceManeuver["SWITCHMAINROAD"] = "SWITCH_MAIN_ROAD"; /** * Take the ramp. */ GuidanceManeuver["ENTRANCERAMP"] = "ENTRANCE_RAMP"; /** * You have reached the waypoint. It is on the left. */ GuidanceManeuver["WAYPOINTLEFT"] = "WAYPOINT_LEFT"; /** * You have reached the waypoint. It is on the right. */ GuidanceManeuver["WAYPOINTRIGHT"] = "WAYPOINT_RIGHT"; /** * You have reached the waypoint. */ GuidanceManeuver["WAYPOINTREACHED"] = "WAYPOINT_REACHED"; })(GuidanceManeuver || (GuidanceManeuver = {})); /** * Defines values for TransitType. * Possible values include: 'Bus', 'CableCar', 'Ferry', 'Funicular', 'Gondola', 'Rail', 'Tram', * 'Subway' * @readonly * @enum {string} */ var TransitType; (function (TransitType) { /** * bus */ TransitType["Bus"] = "Bus"; /** * cableCar */ TransitType["CableCar"] = "CableCar"; /** * ferry */ TransitType["Ferry"] = "Ferry"; /** * funicular */ TransitType["Funicular"] = "Funicular"; /** * gondola */ TransitType["Gondola"] = "Gondola"; /** * rail */ TransitType["Rail"] = "Rail"; /** * tram */ TransitType["Tram"] = "Tram"; /** * subway */ TransitType["Subway"] = "Subway"; })(TransitType || (TransitType = {})); /** * Defines values for LegType. * Possible values include: 'Walk', 'Bicycle', 'Tram', 'Subway', 'Rail', 'Bus', 'Ferry', 'Cable', * 'Gondola', 'Funicular', 'PathWayWalk', 'Wait', 'WaitOnVehicle' * @readonly * @enum {string} */ var LegType; (function (LegType) { /** * Pedestrian walk */ LegType["Walk"] = "Walk"; /** * Bicycle */ LegType["Bicycle"] = "Bicycle"; /** * Tram */ LegType["Tram"] = "Tram"; /** * Subway */ LegType["Subway"] = "Subway"; /** * Rail */ LegType["Rail"] = "Rail"; /** * Bus */ LegType["Bus"] = "Bus"; /** * Ferry */ LegType["Ferry"] = "Ferry"; /** * Cable Car */ LegType["Cable"] = "Cable"; /** * Gondola */ LegType["Gondola"] = "Gondola"; /** * Funicular */ LegType["Funicular"] = "Funicular"; /** * A Leg describing a walk within a compound, e.g. Central Station */ LegType["PathWayWalk"] = "PathWayWalk"; /** * A Leg describing a wait for the next public transit leg */ LegType["Wait"] = "Wait"; /** * It’s necessary to wait for the next leg on the same vehicle (i.e. the bus will only change its * line number) */ LegType["WaitOnVehicle"] = "WaitOnVehicle"; })(LegType || (LegType = {})); /** * Defines values for RelativeDirection. * Possible values include: 'depart', 'hardLeft', 'left', 'slightlyLeft', 'continue', * 'slightlyRight', 'right', 'hardRight', 'circleClockwise', 'circleCounterclockwise', 'elevator', * 'uturnLeft', 'uturnRight' * @readonly * @enum {string} */ var RelativeDirection; (function (RelativeDirection) { /** * Leave */ RelativeDirection["Depart"] = "depart"; /** * Turn sharp left. */ RelativeDirection["HardLeft"] = "hardLeft"; /** * Turn left. */ RelativeDirection["Left"] = "left"; /** * Turn slightly left. */ RelativeDirection["SlightlyLeft"] = "slightlyLeft"; /** * Keep going. */ RelativeDirection["Continue"] = "continue"; /** * Turn slightly right. */ RelativeDirection["SlightlyRight"] = "slightlyRight"; /** * Turn right. */ RelativeDirection["Right"] = "right"; /** * Turn sharp right. */ RelativeDirection["HardRight"] = "hardRight"; /** * Circle clockwise. */ RelativeDirection["CircleClockwise"] = "circleClockwise"; /** * Circle counter clockwise. */ RelativeDirection["CircleCounterclockwise"] = "circleCounterclockwise"; /** * Take the elevator. */ RelativeDirection["Elevator"] = "elevator"; /** * Make a U-turn left. */ RelativeDirection["UturnLeft"] = "uturnLeft"; /** * Make a U-turn right. */ RelativeDirection["UturnRight"] = "uturnRight"; })(RelativeDirection || (RelativeDirection = {})); /** * Defines values for AbsoluteDirection. * Possible values include: 'north', 'northeast', 'east', 'southeast', 'south', 'southwest', * 'west', 'northwest' * @readonly * @enum {string} */ var AbsoluteDirection; (function (AbsoluteDirection) { /** * North */ AbsoluteDirection["North"] = "north"; /** * NorthEast */ AbsoluteDirection["Northeast"] = "northeast"; /** * East */ AbsoluteDirection["East"] = "east"; /** * SouthEast */ AbsoluteDirection["Southeast"] = "southeast"; /** * South */ AbsoluteDirection["South"] = "south"; /** * SouthWest */ AbsoluteDirection["Southwest"] = "southwest"; /** * West */ AbsoluteDirection["West"] = "west"; /** * NorthWest */ AbsoluteDirection["Northwest"] = "northwest"; })(AbsoluteDirection || (AbsoluteDirection = {})); /** * Defines values for ScheduleType. * Possible values include: 'scheduledTime', 'realTime' * @readonly * @enum {string} */ var ScheduleType; (function (ScheduleType) { /** * Returned when estimated time of arrival is based on real-time data. */ ScheduleType["ScheduledTime"] = "scheduledTime"; /** * Returned when estimated time of arrival is based on static data. */ ScheduleType["RealTime"] = "realTime"; })(ScheduleType || (ScheduleType = {})); /** * Defines values for SearchIndexSet. * Possible values include: 'Addr', 'Geo', 'PAD', 'POI', 'Str', 'Xstr' * @readonly * @enum {string} */ var SearchIndexSet; (function (SearchIndexSet) { /** * Address range interpolation */ SearchIndexSet["Addr"] = "Addr"; /** * Geographies */ SearchIndexSet["Geo"] = "Geo"; /** * Point Addresses */ SearchIndexSet["PAD"] = "PAD"; /** * Points of interest */ SearchIndexSet["POI"] = "POI"; /** * Streets */ SearchIndexSet["Str"] = "Str"; /** * Cross Streets (Intersections) */ SearchIndexSet["Xstr"] = "Xstr"; })(SearchIndexSet || (SearchIndexSet = {})); /** * Defines values for ConnectorSet. * Possible values include: 'StandardHouseholdCountrySpecific', 'IEC62196Type1', * 'IEC62196Type1CCS', 'IEC62196Type2CableAttached', 'IEC62196Type2Outlet', 'IEC62196Type2CCS', * 'IEC62196Type3', 'Chademo', 'IEC60309AC1PhaseBlue', 'IEC60309DCWhite', 'Tesla' * @readonly * @enum {string} */ var ConnectorSet; (function (ConnectorSet) { /** * These are the standard household connectors for a certain region. They are all AC single phase * and the standard Voltage and standard Amperage. * * See also: [Plug & socket types - World * Standards](https://www.worldstandards.eu/electricity/plugs-and-sockets) */ ConnectorSet["StandardHouseholdCountrySpecific"] = "StandardHouseholdCountrySpecific"; /** * Type 1 connector as defined in the IEC 62196-2 standard. Also called Yazaki after the original * manufacturer or SAE J1772 after the standard that first published it. Mostly used in * combination with 120V single phase or up to 240V single phase infrastructure. */ ConnectorSet["IEC62196Type1"] = "IEC62196Type1"; /** * Type 1 based combo connector as defined in the IEC 62196-3 standard. The connector is based on * the Type 1 connector – as defined in the IEC 62196-2 standard – with two additional direct * current (DC) contacts to allow DC fast charging. */ ConnectorSet["IEC62196Type1CCS"] = "IEC62196Type1CCS"; /** * Type 2 connector as defined in the IEC 62196-2 standard. Provided as a cable and plug attached * to the charging point */ ConnectorSet["IEC62196Type2CableAttached"] = "IEC62196Type2CableAttached"; /** * Type 2 connector as defined in the IEC 62196-2 standard. Provided as a socket set into the * charging point. */ ConnectorSet["IEC62196Type2Outlet"] = "IEC62196Type2Outlet"; /** * Type 2 based combo connector as defined in the IEC 62196-3 standard. The connector is based on * the Type 2 connector – as defined in the IEC 62196-2 standard – with two additional direct * current (DC) contacts to allow DC fast charging. */ ConnectorSet["IEC62196Type2CCS"] = "IEC62196Type2CCS"; /** * Type 3 connector as defined in the IEC 62196-2 standard. Also called Scame after the original * manufacturer. Mostly used in combination with up to 240V single phase or up to 420V three * phase infrastructure. */ ConnectorSet["IEC62196Type3"] = "IEC62196Type3"; /** * CHAdeMO connector named after an association formed by the Tokyo Electric Power Company and * industrial partners. Because of this is is also known as the TEPCO's connector. It supports * fast DC charging. */ ConnectorSet["Chademo"] = "Chademo"; /** * Industrial Blue connector is a connector defined in the IEC 60309 standard. It is sometime * referred to as by some combination of the standard, the color and the fact that is a single * phase connector. The connector usually has the "P+N+E, 6h" configuration. */ ConnectorSet["IEC60309AC1PhaseBlue"] = "IEC60309AC1PhaseBlue"; /** * Industrial White connector is a DC connector defined in the IEC 60309 standard. */ ConnectorSet["IEC60309DCWhite"] = "IEC60309DCWhite"; /** * The Tesla connector is the regionally specific Tesla Supercharger connector. I.e. it refers to * either Tesla's proprietary connector, sometimes referred to as Tesla Port mostly limited to * North America or the modified Type 2 (DC over Type 2) in Europe. */ ConnectorSet["Tesla"] = "Tesla"; })(ConnectorSet || (ConnectorSet = {})); /** * Defines values for OpeningHours. * Possible values include: 'nextSevenDays' * @readonly * @enum {string} */ var OpeningHours; (function (OpeningHours) { /** * Shows the opening hours for next week, starting with the current day in the local time of the * POI. */ OpeningHours["NextSevenDays"] = "nextSevenDays"; })(OpeningHours || (OpeningHours = {})); /** * Defines values for VehicleLoadType. * Possible values include: 'USHazmatClass1', 'USHazmatClass2', 'USHazmatClass3', 'USHazmatClass4', * 'USHazmatClass5', 'USHazmatClass6', 'USHazmatClass7', 'USHazmatClass8', 'USHazmatClass9', * 'otherHazmatExplosive', 'otherHazmatGeneral', 'otherHazmatHarmfulToWater' * @readonly * @enum {string} */ var VehicleLoadType; (function (VehicleLoadType) { /** * Explosives */ VehicleLoadType["USHazmatClass1"] = "USHazmatClass1"; /** * Compressed gas */ VehicleLoadType["USHazmatClass2"] = "USHazmatClass2"; /** * Flammable liquids */ VehicleLoadType["USHazmatClass3"] = "USHazmatClass3"; /** * Flammable solids */ VehicleLoadType["USHazmatClass4"] = "USHazmatClass4"; /** * Oxidizers */ VehicleLoadType["USHazmatClass5"] = "USHazmatClass5"; /** * Poisons */ VehicleLoadType["USHazmatClass6"] = "USHazmatClass6"; /** * Radioactive */ VehicleLoadType["USHazmatClass7"] = "USHazmatClass7"; /** * Corrosives */ VehicleLoadType["USHazmatClass8"] = "USHazmatClass8"; /** * Miscellaneous */ VehicleLoadType["USHazmatClass9"] = "USHazmatClass9"; /** * Explosives */ VehicleLoadType["OtherHazmatExplosive"] = "otherHazmatExplosive"; /** * Miscellaneous */ VehicleLoadType["OtherHazmatGeneral"] = "otherHazmatGeneral"; /** * Harmful to water */ VehicleLoadType["OtherHazmatHarmfulToWater"] = "otherHazmatHarmfulToWater"; })(VehicleLoadType || (VehicleLoadType = {})); /** * Defines values for RouteType. * Possible values include: 'fastest', 'shortest', 'eco', 'thrilling' * @readonly * @enum {string} */ var RouteType; (function (RouteType) { /** * The fastest route. */ RouteType["Fastest"] = "fastest"; /** * The shortest route by distance. */ RouteType["Shortest"] = "shortest"; /** * A route balanced by economy and speed. */ RouteType["Eco"] = "eco"; /** * Includes interesting or challenging roads and uses as few motorways as possible. You can * choose the level of turns included and also the degree of hilliness. See the hilliness and * windingness parameters for how to set this. There is a limit of 900 km on routes planned with * routeType=thrilling */ RouteType["Thrilling"] = "thrilling"; })(RouteType || (RouteType = {})); /** * Defines values for Windingness. * Possible values include: 'low', 'normal', 'high' * @readonly * @enum {string} */ var Windingness; (function (Windingness) { /** * low */ Windingness["Low"] = "low"; /** * normal */ Windingness["Normal"] = "normal"; /** * high */ Windingness["High"] = "high"; })(Windingness || (Windingness = {})); /** * Defines values for Hilliness. * Possible values include: 'low', 'normal', 'high' * @readonly * @enum {string} */ var Hilliness; (function (Hilliness) { /** * low */ Hilliness["Low"] = "low"; /** * normal */ Hilliness["Normal"] = "normal"; /** * high */ Hilliness["High"] = "high"; })(Hilliness || (Hilliness = {})); /** * Defines values for TravelMode. * Possible values include: 'car', 'truck', 'taxi', 'bus', 'van', 'motorcycle', 'bicycle', * 'pedestrian' * @readonly * @enum {string} */ var TravelMode; (function (TravelMode) { /** * car */ TravelMode["Car"] = "car"; /** * truck */ TravelMode["Truck"] = "truck"; /** * taxi */ TravelMode["Taxi"] = "taxi"; /** * bus */ TravelMode["Bus"] = "bus"; /** * van */ TravelMode["Van"] = "van"; /** * motorcycle */ TravelMode["Motorcycle"] = "motorcycle"; /** * bicycle */ TravelMode["Bicycle"] = "bicycle"; /** * pedestrian */ TravelMode["Pedestrian"] = "pedestrian"; })(TravelMode || (TravelMode = {})); /** * Defines values for Avoid. * Possible values include: 'tollRoads', 'motorways', 'ferries', 'unpavedRoads', 'carpools', * 'alreadyUsedRoads', 'borderCrossings' * @readonly * @enum {string} */ var Avoid; (function (Avoid) { /** * Avoids toll roads. */ Avoid["TollRoads"] = "tollRoads"; /** * Avoids motorways */ Avoid["Motorways"] = "motorways"; /** * Avoids ferries */ Avoid["Ferries"] = "ferries"; /** * Avoids unpaved roads */ Avoid["UnpavedRoads"] = "unpavedRoads"; /** * Avoids routes that require the use of carpool (HOV/High Occupancy Vehicle) lanes. */ Avoid["Carpools"] = "carpools"; /** * Avoids using the same road multiple times. Most useful in conjunction with * `routeType`=thrilling. */ Avoid["AlreadyUsedRoads"] = "alreadyUsedRoads"; /** * Avoids border crossings in route calculation. */ Avoid["BorderCrossings"] = "borderCrossings"; })(Avoid || (Avoid = {})); /** * Defines values for VehicleEngineType. * Possible values include: 'combustion', 'electric' * @readonly * @enum {string} */ var VehicleEngineType; (function (VehicleEngineType) { /** * Internal combustion engine. */ VehicleEngineType["Combustion"] = "combustion"; /** * Electric engine. */ VehicleEngineType["Electric"] = "electric"; })(VehicleEngineType || (VehicleEngineType = {})); /** * Defines values for SectionType. * Possible values include: 'carTrain', 'country', 'ferry', 'motorway', 'pedestrian', 'tollRoad', * 'tollVignette', 'traffic', 'travelMode', 'tunnel' * @readonly * @enum {string} */ var SectionType; (function (SectionType) { /** * Get sections if the route includes car trains. */ SectionType["CarTrain"] = "carTrain"; /** * Countries the route has parts in. */ SectionType["Country"] = "country"; /** * Get sections if the route includes ferries. */ SectionType["Ferry"] = "ferry"; /** * Get sections if the route includes motorways. */ SectionType["Motorway"] = "motorway"; /** * Get sections which are suited for pedestrians. */ SectionType["Pedestrian"] = "pedestrian"; /** * Get sections which require a toll to be payed. */ SectionType["TollRoad"] = "tollRoad"; /** * Get sections which require a toll vignette to be present. */ SectionType["TollVignette"] = "tollVignette"; /** * Get sections which contain traffic information. */ SectionType["Traffic"] = "traffic"; /** * Get sections in relation to the request parameter `travelMode`. */ SectionType["TravelMode"] = "travelMode"; /** * Get sections if the route includes tunnels. */ SectionType["Tunnel"] = "tunnel"; })(SectionType || (SectionType = {})); /** * Defines values for RouteRepresentation. * Possible values include: 'polyline', 'summaryOnly', 'none' * @readonly * @enum {string} */ var RouteRepresentation; (function (RouteRepresentation) { /** * Includes route geometry in the response. */ RouteRepresentation["Polyline"] = "polyline"; /** * Summary as per polyline but excluding the point geometry elements for the routes in the * response. */ RouteRepresentation["SummaryOnly"] = "summaryOnly"; /** * Includes only the optimized waypoint indices but does not include the route geometry in the * response. */ RouteRepresentation["None"] = "none"; })(RouteRepresentation || (RouteRepresentation = {})); /** * Defines values for ComputeTravelTimeFor. * Possible values include: 'none', 'all' * @readonly * @enum {string} */ var ComputeTravelTimeFor; (function (ComputeTravelTimeFor) { /** * Does not compute additional travel times. */ ComputeTravelTimeFor["None"] = "none"; /** * Computes travel times for all types of traffic information and specifies all results in the * fields noTrafficTravelTimeInSeconds, historicTrafficTravelTimeInSeconds and * liveTrafficIncidentsTravelTimeInSeconds being included in the summaries in the route response. */ ComputeTravelTimeFor["All"] = "all"; })(ComputeTravelTimeFor || (ComputeTravelTimeFor = {})); /** * Defines values for AlternativeRouteType. * Possible values include: 'anyRoute', 'betterRoute' * @readonly * @enum {string} */ var AlternativeRouteType; (function (AlternativeRouteType) { /** * Allow any alternative route to be returned irrespective of how it compares to the reference * route in terms of optimality. */ AlternativeRouteType["AnyRoute"] = "anyRoute"; /** * Return an alternative route only if it is better than the reference route according to the * given planning criteria. */ AlternativeRouteType["BetterRoute"] = "betterRoute"; })(AlternativeRouteType || (AlternativeRouteType = {})); /** * Defines values for RouteInstructionsType. * Possible values include: 'coded', 'text', 'tagged' * @readonly * @enum {string} */ var RouteInstructionsType; (function (RouteInstructionsType) { /** * Returns raw instruction data without human-readable messages. */ RouteInstructionsType["Coded"] = "coded"; /** * Returns raw instructions data with human-readable messages in plain text. */ RouteInstructionsType["Text"] = "text"; /** * Returns raw instruction data with tagged human-readable messages to permit formatting. */ RouteInstructionsType["Tagged"] = "tagged"; })(RouteInstructionsType || (RouteInstructionsType = {})); /** * Defines values for TimezoneOptions. * Possible values include: 'none', 'zoneInfo', 'transitions', 'all' * @readonly * @enum {string} */ var TimezoneOptions; (function (TimezoneOptions) { /** * Do not include zoneinfo or transitions in the result. */ TimezoneOptions["None"] = "none"; /** * Include additional time zone info in the result. */ TimezoneOptions["ZoneInfo"] = "zoneInfo"; /** * Include transition information in the result (The number of transitions is currently capped at * 250). */ TimezoneOptions["Transitions"] = "transitions"; /** * Include both zoneinfo and transitions in the result. */ TimezoneOptions["All"] = "all"; })(TimezoneOptions || (TimezoneOptions = {})); /** * Defines values for TileFormat. * Possible values include: 'png', 'pbf' * @readonly * @enum {string} */ var TileFormat; (function (TileFormat) { /** * An image in the png format. Supports zoom levels 0 through 18. */ TileFormat["Png"] = "png"; /** * Vector graphic in the pbf format. Supports zoom levels 0 through 22. */ TileFormat["Pbf"] = "pbf"; })(TileFormat || (TileFormat = {})); /** * Defines values for GeofenceMode. * Possible values include: 'All', 'EnterAndExit' * @readonly * @enum {string} */ var GeofenceMode; (function (GeofenceMode) { /** * Publish all the query results to Azure Maps account event subscription. */ GeofenceMode["All"] = "All"; /** * Only publish result when user location is considered as crossing geofencing boarder. */ GeofenceMode["EnterAndExit"] = "EnterAndExit"; })(GeofenceMode || (GeofenceMode = {})); /** * Defines values for StaticMapLayer. * Possible values include: 'basic', 'hybrid', 'labels' * @readonly * @enum {string} */ var StaticMapLayer; (function (StaticMapLayer) { /** * Returns an image containing all map features including polygons, borders, roads and labels. */ StaticMapLayer["Basic"] = "basic"; /** * Returns an image containing borders, roads, and labels, and can be overlaid on other tiles * (such as satellite imagery) to produce hybrid tiles. */ StaticMapLayer["Hybrid"] = "hybrid"; /** * Returns an image of just the map's label information. */ StaticMapLayer["Labels"] = "labels"; })(StaticMapLayer || (StaticMapLayer = {})); /** * Defines values for MapTileLayer. * Possible values include: 'basic', 'hybrid', 'labels', 'terra' * @readonly * @enum {string} */ var MapTileLayer; (function (MapTileLayer) { /** * Returns a tile containing all map features including polygons, borders, roads and labels. */ MapTileLayer["Basic"] = "basic"; /** * Returns a tile containing borders, roads, and labels, and can be overlaid on other tiles (such * as satellite imagery) to produce hybrid tiles. */ MapTileLayer["Hybrid"] = "hybrid"; /** * Returns a tile of just the map's label information. */ MapTileLayer["Labels"] = "labels"; /** * Map canvas complete with shaded relief tiles. Zoom levels 0-6 (inclusive) are supported. Png * is the only supported TileFormat and only available MapTileSize is 512. */ MapTileLayer["Terra"] = "terra"; })(MapTileLayer || (MapTileLayer = {})); /** * Defines values for MapTileStyle. * Possible values include: 'main', 'shaded_relief' * @readonly * @enum {string} */ var MapTileStyle; (function (MapTileStyle) { /** * Azure Maps main style */ MapTileStyle["Main"] = "main"; /** * Azure Maps main style completed with shaded relief. Supported by Layer terra. */ MapTileStyle["ShadedRelief"] = "shaded_relief"; })(MapTileStyle || (MapTileStyle = {})); /** * Defines values for MetroAreaQueryType. * Possible values include: 'position', 'countryCode' * @readonly * @enum {string} */ var MetroAreaQueryType; (function (MetroAreaQueryType) { /** * The origin of the route as a comma separated string composed by latitude followed by longitude * e.g. "47.641268,-122.125679". */ MetroAreaQueryType["Position"] = "position"; /** * 2-character [ISO 3166-1](https://www.iso.org/iso-3166-country-codes.html) alpha-2 country * code. E.g. US. */ MetroAreaQueryType["CountryCode"] = "countryCode"; })(MetroAreaQueryType || (MetroAreaQueryType = {})); /** * Defines values for MetroAreaDetailType. * Possible values include: 'agencies', 'alerts', 'alertDetails', 'transitTypes' * @readonly * @enum {string} */ var MetroAreaDetailType; (function (MetroAreaDetailType) { /** * Return a list of all public transit agencies operating in the given metro area. */ MetroAreaDetailType["Agencies"] = "agencies"; /** * Returns a list of all active service alerts, that are defined in the metro or agency level, * and are not connected to a specific line or stop. */ MetroAreaDetailType["Alerts"] = "alerts"; /** * Applicable only when alerts are requested. Returns details of the alerts. */ MetroAreaDetailType["AlertDetails"] = "alertDetails"; /** * Returns a list of all supported transit types in the given metro area. */ MetroAreaDetailType["TransitTypes"] = "transitTypes"; })(MetroAreaDetailType || (MetroAreaDetailType = {})); /** * Defines values for ObjectType. * Possible values include: 'stop', 'docklessBike', 'docklessElectricBike', * 'docklessElectricScooter', 'docklessScooter', 'docklessMoped', 'carShare', 'docklessVehicle', * 'bikeDock' * @readonly * @enum {string} */ var ObjectType; (function (ObjectType) { /** * Stop */ ObjectType["Stop"] = "stop"; /** * Dockless bike */ ObjectType["DocklessBike"] = "docklessBike"; /** * Dockless electric bike */ ObjectType["DocklessElectricBike"] = "docklessElectricBike"; /** * Dockless electric scooter */ ObjectType["DocklessElectricScooter"] = "docklessElectricScooter"; /** * Dockless scooter */ ObjectType["DocklessScooter"] = "docklessScooter"; /** * Dockless moped */ ObjectType["DocklessMoped"] = "docklessMoped"; /** * Car Share */ ObjectType["CarShare"] = "carShare"; /** * Dockless Vehicle */ ObjectType["DocklessVehicle"] = "docklessVehicle"; /** * Docked Bike */ ObjectType["BikeDock"] = "bikeDock"; })(ObjectType || (ObjectType = {})); /** * Defines values for TransitLineDetailType. * Possible values include: 'alerts', 'alertDetails', 'lines', 'stops', 'schedule', 'patterns' * @readonly * @enum {string} */ var TransitLineDetailType; (function (TransitLineDetailType) { /** * Return any active service alerts for the specified stop. Response provides brief information * for disruption in service and all basic data associated with the alert. */ TransitLineDetailType["Alerts"] = "alerts"; /** * Can only be used in conjunction with detailType=alerts.Return additional details associated * with the active service alerts. */ TransitLineDetailType["AlertDetails"] = "alertDetails"; /** * Return transit lines that stops at the specified stop. */ TransitLineDetailType["Lines"] = "lines"; /** * Return list of stops the line group goes through. */ TransitLineDetailType["Stops"] = "stops"; /** * Return a 24h static schedule for the specified line group from the current time of the day to * the end of the current day. Data is guaranteed to be returned only between the current day and * 3 days forward. */ TransitLineDetailType["Schedule"] = "schedule"; /** * Return list of patterns this group is comprised of. A pattern consists of a stop sequence and * shape per line. */ TransitLineDetailType["Patterns"] = "patterns"; })(TransitLineDetailType || (TransitLineDetailType = {})); /** * Defines values for TransitStopQueryType. * Possible values include: 'stopId', 'stopKey' * @readonly * @enum {string} */ var TransitStopQueryType; (function (TransitStopQueryType) { /** * The unique Azure Maps identifier for the respective public transit stop. When referring stops * overtime, it is suggested to use stopId that will not change if the physical stop exists. */ TransitStopQueryType["StopId"] = "stopId"; /** * The GTFS stop Id. GTFS stop Ids are provided by the transit authority and are subject to * change. */ TransitStopQueryType["StopKey"] = "stopKey"; })(TransitStopQueryType || (TransitStopQueryType = {})); /** * Defines values for TransitStopDetailType. * Possible values include: 'alerts', 'alertDetails', 'lines', 'lineGroups' * @readonly * @enum {string} */ var TransitStopDetailType; (function (TransitStopDetailType) { /** * Return any active service alerts for the specified stop. Response provides brief information * for disruption in service and all basic data associated with the alert. */ TransitStopDetailType["Alerts"] = "alerts"; /** * Can only be used in conjunction with detailType=alerts.Return additional details associated * with the active service alerts. */ TransitStopDetailType["AlertDetails"] = "alertDetails"; /** * Return transit lines that stops at the specified stop. */ TransitStopDetailType["Lines"] = "lines"; /** * Return line groups that stops at the specified stop. */ TransitStopDetailType["LineGroups"] = "lineGroups"; })(TransitStopDetailType || (TransitStopDetailType = {})); /** * Defines values for OriginType. * Possible values include: 'position', 'stopId', 'stopKey' * @readonly * @enum {string} */ var OriginType; (function (OriginType) { /** * The origin of the route as a comma separated string composed by latitude followed by longitude * e.g. "47.641268,-122.125679". */ OriginType["Position"] = "position"; /** * The unique Azure Maps identifier for the respective public transit stop. When referring stops * overtime, it is suggested to use stopId that will not change if the physical stop exists. */ OriginType["StopId"] = "stopId"; /** * The GTFS stop Id. GTFS stop Ids are provided by the transit authority and are subject to * change. */ OriginType["StopKey"] = "stopKey"; })(OriginType || (OriginType = {})); /** * Defines values for DestinationType. * Possible values include: 'position', 'stopId', 'stopKey' * @readonly * @enum {string} */ var DestinationType; (function (DestinationType) { /** * The destination of the route as a comma separated string composed by latitude followed by * longitude e.g. "47.641268,-122.125679". */ DestinationType["Position"] = "position"; /** * The unique Azure Maps identifier for the respective public transit stop. When referring stops * overtime, it is suggested to use stopId that will not change if the physical stop exists. */ DestinationType["StopId"] = "stopId"; /** * The GTFS stop Id. GTFS stop Ids are provided by the transit authority and are subject to * change. */ DestinationType["StopKey"] = "stopKey"; })(DestinationType || (DestinationType = {})); /** * Defines values for ModeType. * Possible values include: 'walk', 'bike', 'publicTransit' * @readonly * @enum {string} */ var ModeType; (function (ModeType) { /** * walk (pedestrian) */ ModeType["Walk"] = "walk"; /** * bike */ ModeType["Bike"] = "bike"; /** * public transit */ ModeType["PublicTransit"] = "publicTransit"; })(ModeType || (ModeType = {})); /** * Defines values for TransitTypeFilter. * Possible values include: 'bus', 'cableCar', 'ferry', 'funicular', 'gondola', 'rail', 'tram', * 'subway' * @readonly * @enum {string} */ var TransitTypeFilter; (function (TransitTypeFilter) { /** * bus */ TransitTypeFilter["Bus"] = "bus"; /** * cableCar */ TransitTypeFilter["CableCar"] = "cableCar"; /** * ferry */ TransitTypeFilter["Ferry"] = "ferry"; /** * funicular */ TransitTypeFilter["Funicular"] = "funicular"; /** * gondola */ TransitTypeFilter["Gondola"] = "gondola"; /** * rail */ TransitTypeFilter["Rail"] = "rail"; /** * tram */ TransitTypeFilter["Tram"] = "tram"; /** * subway */ TransitTypeFilter["Subway"] = "subway"; })(TransitTypeFilter || (TransitTypeFilter = {})); /** * Defines values for AgencyType. * Possible values include: 'agencyId', 'agencyKey', 'agencyName' * @readonly * @enum {string} */ var AgencyType; (function (AgencyType) { /** * The Id of the transit agency, e.g. '5872' */ AgencyType["AgencyId"] = "agencyId"; /** * The agency’s GTFS Id. */ AgencyType["AgencyKey"] = "agencyKey"; /** * The name of the transit agency, e.g. Metro Transit. */ AgencyType["AgencyName"] = "agencyName"; })(AgencyType || (AgencyType = {})); /** * Defines values for TimeType. * Possible values include: 'arrival', 'departure', 'last' * @readonly * @enum {string} */ var TimeType; (function (TimeType) { /** * arrival at the destination point. Requires that 'time' value must be in the future. */ TimeType["Arrival"] = "arrival"; /** * Request departure at the destination point. Requires that 'time' value must be now or in the * future. */ TimeType["Departure"] = "departure"; /** * Request the last lines for the day. */ TimeType["Last"] = "last"; })(TimeType || (TimeType = {})); /** * Defines values for TransitRouteType. * Possible values include: 'optimal', 'leastWalk', 'leastTransfers' * @readonly * @enum {string} */ var TransitRouteType; (function (TransitRouteType) { /** * The best optimal route. */ TransitRouteType["Optimal"] = "optimal"; /** * Route with least walk. */ TransitRouteType["LeastWalk"] = "leastWalk"; /** * Route with least transfers. */ TransitRouteType["LeastTransfers"] = "leastTransfers"; })(TransitRouteType || (TransitRouteType = {})); /** * Defines values for BikeType. * Possible values include: 'privateBike', 'dockedBike' * @readonly * @enum {string} */ var BikeType; (function (BikeType) { /** * Use private bike. */ BikeType["PrivateBike"] = "privateBike"; /** * Use docked bike share bike. */ BikeType["DockedBike"] = "dockedBike"; })(BikeType || (BikeType = {})); /** * Defines values for TransitItineraryDetailType. * Possible values include: 'geometry', 'schedule' * @readonly * @enum {string} */ var TransitItineraryDetailType; (function (TransitItineraryDetailType) { /** * Shape of an in GeoJSON format. For public transit legs will return also the stops that the leg * passes through. For walk and bike legs, will return also the turn-by-turn navigation data. */ TransitItineraryDetailType["Geometry"] = "geometry"; /** * Static schedule data as to all departures of Public Transit legs from the current time of the * day to the end of the current day. Data is guaranteed to be returned only between the current * day and 3 days forward. */ TransitItineraryDetailType["Schedule"] = "schedule"; })(TransitItineraryDetailType || (TransitItineraryDetailType = {})); /** * Defines values for RealTimeArrivalsQueryType. * Possible values include: 'stops', 'line', 'lineAndStop', 'position' * @readonly * @enum {string} */ var RealTimeArrivalsQueryType; (function (RealTimeArrivalsQueryType) { /** * One or multiple stops as a comma separated list. Returns the requested number of live arrivals * for all lines arriving at the specified stop. Defined by parameter stopQueryType. */ RealTimeArrivalsQueryType["Stops"] = "stops"; /** * Returns the next live arrival times for each stop within the specified line. lineId, for * example, '3785742'. */ RealTimeArrivalsQueryType["Line"] = "line"; /** * Returns up to three next Live Arrival times for a given line at a given stop. Comma-separated * list including lineId and stop identifier, for example, 1228526,14014071 (lineId,stopId). */ RealTimeArrivalsQueryType["LineAndStop"] = "lineAndStop"; /** * Returns arrivals of a line to stops near the user’s location. The applicable location query * specified as a comma separated string composed by latitude followed by longitude e.g. * "47.641268,-122.125679". */ RealTimeArrivalsQueryType["Position"] = "position"; })(RealTimeArrivalsQueryType || (RealTimeArrivalsQueryType = {})); /** * Defines values for StopQueryType. * Possible values include: 'stopId', 'stopKey' * @readonly * @enum {string} */ var StopQueryType; (function (StopQueryType) { /** * The unique identifier for the respective public transit stop. When referring stops overtime, * it is suggested to use stopId that will not change if the physical stop exists. */ StopQueryType["StopId"] = "stopId"; /** * The GTFS stop Id. GTFS stop Ids are provided by the transit authority and are subject to * change. */ StopQueryType["StopKey"] = "stopKey"; })(StopQueryType || (StopQueryType = {})); /** * Defines values for Type. * Possible values include: 'main', 'minor' * @readonly * @enum {string} */ var Type; (function (Type) { Type["Main"] = "main"; Type["Minor"] = "minor"; })(Type || (Type = {})); /** * Defines values for Style. * Possible values include: 'main' * @readonly * @enum {string} */ var Style; (function (Style) { Style["Main"] = "main"; })(Style || (Style = {})); /** * Defines values for Text. * Possible values include: 'yes', 'no' * @readonly * @enum {string} */ var Text; (function (Text) { Text["Yes"] = "yes"; Text["No"] = "no"; })(Text || (Text = {})); /** * Defines values for Text1. * Possible values include: 'yes', 'no' * @readonly * @enum {string} */ var Text1; (function (Text1) { Text1["Yes"] = "yes"; Text1["No"] = "no"; })(Text1 || (Text1 = {})); /** * Defines values for Text2. * Possible values include: 'yes', 'no' * @readonly * @enum {string} */ var Text2; (function (Text2) { Text2["Yes"] = "yes"; Text2["No"] = "no"; })(Text2 || (Text2 = {})); var index = /*#__PURE__*/Object.freeze({ __proto__: null, get EntityType () { return EntityType; }, get MagnitudeOfDelay () { return MagnitudeOfDelay; }, get GuidanceInstructionType () { return GuidanceInstructionType; }, get DrivingSide () { return DrivingSide; }, get GuidanceManeuver () { return GuidanceManeuver; }, get TransitType () { return TransitType; }, get LegType () { return LegType; }, get RelativeDirection () { return RelativeDirection; }, get AbsoluteDirection () { return AbsoluteDirection; }, get ScheduleType () { return ScheduleType; }, get SearchIndexSet () { return SearchIndexSet; }, get ConnectorSet () { return ConnectorSet; }, get OpeningHours () { return OpeningHours; }, get VehicleLoadType () { return VehicleLoadType; }, get RouteType () { return RouteType; }, get Windingness () { return Windingness; }, get Hilliness () { return Hilliness; }, get TravelMode () { return TravelMode; }, get Avoid () { return Avoid; }, get VehicleEngineType () { return VehicleEngineType; }, get SectionType () { return SectionType; }, get RouteRepresentation () { return RouteRepresentation; }, get ComputeTravelTimeFor () { return ComputeTravelTimeFor; }, get AlternativeRouteType () { return AlternativeRouteType; }, get RouteInstructionsType () { return RouteInstructionsType; }, get TimezoneOptions () { return TimezoneOptions; }, get TileFormat () { return TileFormat; }, get GeofenceMode () { return GeofenceMode; }, get StaticMapLayer () { return StaticMapLayer; }, get MapTileLayer () { return MapTileLayer; }, get MapTileStyle () { return MapTileStyle; }, get MetroAreaQueryType () { return MetroAreaQueryType; }, get MetroAreaDetailType () { return MetroAreaDetailType; }, get ObjectType () { return ObjectType; }, get TransitLineDetailType () { return TransitLineDetailType; }, get TransitStopQueryType () { return TransitStopQueryType; }, get TransitStopDetailType () { return TransitStopDetailType; }, get OriginType () { return OriginType; }, get DestinationType () { return DestinationType; }, get ModeType () { return ModeType; }, get TransitTypeFilter () { return TransitTypeFilter; }, get AgencyType () { return AgencyType; }, get TimeType () { return TimeType; }, get TransitRouteType () { return TransitRouteType; }, get BikeType () { return BikeType; }, get TransitItineraryDetailType () { return TransitItineraryDetailType; }, get RealTimeArrivalsQueryType () { return RealTimeArrivalsQueryType; }, get StopQueryType () { return StopQueryType; }, get Type () { return Type; }, get Style () { return Style; }, get Text () { return Text; }, get Text1 () { return Text1; }, get Text2 () { return Text2; } }); /** * An aborter instance implements AbortSignal interface, can abort HTTP requests. * * - Call Aborter.none to create a new Aborter instance without timeout. * - Call Aborter.timeout() to create a new Aborter instance with timeout. * * For an existing instance aborter: * - Call aborter.withTimeout() to create and return a child Aborter instance with timeout. * - Call aborter.withValue(key, value) to create and return a child Aborter instance with key/value pair. * - Call aborter.abort() to abort current instance and all children instances. * - Call aborter.getValue(key) to search and get value with corresponding key from current aborter to all parents. * * @export * @class Aborter * @implements {AbortSignalLike} */ var Aborter = /** @class */ (function () { // private disposed: boolean = false; /** * Private constructor for internal usage, creates an instance of Aborter. * * @param {Aborter} [parent] Optional. Parent aborter. * @param {number} [timeout=0] Optional. Timeout before abort in millisecond, 0 means no timeout. * @param {string} [key] Optional. Immutable key in string. * @param {(string | number | boolean | null)} [value] Optional. Immutable value. * @memberof Aborter */ function Aborter(parent, timeout, key, value) { var _this = this; if (timeout === void 0) { timeout = 0; } // tslint:disable-next-line: