thinwrap_location_defaults (thinwrap_location v1.3.0)
View SourceConnector default lists for list-valued vendor parameters.
A passthrough REPLACES a list-valued parameter wholesale (a field-mask
header, HERE's return query, an annotations list) rather than appending to
it — an append-only merge would leave no way to remove a default. These are
exactly what the connectors send, so a caller who wants the default plus one
field can build it without copying strings:
Mask = lists:join(<<",">>, thinwrap_location_defaults:google_routes_field_mask()
++ [<<"routes.travelAdvisory">>]),
thinwrap_location:route(Config, Input#{passthrough =>
#{headers => #{<<"X-Goog-FieldMask">> => iolist_to_binary(Mask)}}}).
Summary
Functions
Esri OD cost matrix accumulateAttributeNames; Kilometers is the distance column.
Esri route accumulateAttributeNames for driving. The time attribute must
match the travel mode's impedance or Esri silently returns no cumulative time.
Esri route accumulateAttributeNames for walking.
Google Compute Route Matrix X-Goog-FieldMask. status/condition decide
whether a cell is reachable; without them an unroutable pair surfaces as a
zero cell.
Google Place Details X-Goog-FieldMask (Essentials tier).
Appended only when include names name: displayName is a Pro-tier field.
Google Compute Routes X-Goog-FieldMask.
Appended only when include names durationWithoutTraffic.
Appended only when the request reorders waypoints (any optimize flag or is_round_trip).
HERE Matrix v8 matrixAttributes; the decoder needs both.
HERE Routing v8 return: summary feeds legs and totals, polyline the geometry.
Mapbox Matrix annotations; the decoder needs both matrices.
OSRM Table annotations; OSRM's own default (duration alone) leaves no distances.
Functions
-spec esri_matrix_accumulate_attributes() -> [binary()].
Esri OD cost matrix accumulateAttributeNames; Kilometers is the distance column.
-spec esri_routing_accumulate_attributes_driving() -> [binary()].
Esri route accumulateAttributeNames for driving. The time attribute must
match the travel mode's impedance or Esri silently returns no cumulative time.
-spec esri_routing_accumulate_attributes_walking() -> [binary()].
Esri route accumulateAttributeNames for walking.
-spec google_matrix_field_mask() -> [binary()].
Google Compute Route Matrix X-Goog-FieldMask. status/condition decide
whether a cell is reachable; without them an unroutable pair surfaces as a
zero cell.
-spec google_place_details_field_mask() -> [binary()].
Google Place Details X-Goog-FieldMask (Essentials tier).
-spec google_place_details_field_mask_name() -> [binary()].
Appended only when include names name: displayName is a Pro-tier field.
-spec google_routes_field_mask() -> [binary()].
Google Compute Routes X-Goog-FieldMask.
-spec google_routes_field_mask_duration_without_traffic() -> [binary()].
Appended only when include names durationWithoutTraffic.
-spec google_routes_field_mask_waypoint_order() -> [binary()].
Appended only when the request reorders waypoints (any optimize flag or is_round_trip).
-spec here_matrix_attributes() -> [binary()].
HERE Matrix v8 matrixAttributes; the decoder needs both.
-spec here_routing_return() -> [binary()].
HERE Routing v8 return: summary feeds legs and totals, polyline the geometry.
-spec mapbox_matrix_annotations() -> [binary()].
Mapbox Matrix annotations; the decoder needs both matrices.
-spec osrm_table_annotations() -> [binary()].
OSRM Table annotations; OSRM's own default (duration alone) leaves no distances.