+
+
+
+
+
+ Union Station (Sound Transit Stop)
+
+
+
+
+ Stops
+
+
+
+
+
+
+
+ Clinton (WA State Ferry Stop)
+
+
+ ,
+
+ Clinton Ferry Pier
+
+
+
+ ,
+
+ Another label
+
+
+
+ ,
+
+ Really just way too long a name I mean this name is just unconscionably long! Who would possibly approve a stop name this long
+
+
+
+
+
+
+
+
+
+
+ Marine Dr NE & 27th Ave NE (Community Transit Stop ID 1)
+
+
+
+
+
+
+
+
+ Marine Dr NE & 23rd Ave NE (Community Transit Stop ID 7)
+
+
+
+
+ Other
+
+
+
+
+
+
+
+ Whole Foods that is far away, but prioritized
+
+
+
+
+
+
+
+
+
+ Whole Foods Market
+
+
+ ,
+
+ Broadway, First Hill, Seattle, WA
+
+
+
+
+
diff --git a/packages/location-field/src/types.ts b/packages/location-field/src/types.ts
index 8762e20da..a69b72f43 100644
--- a/packages/location-field/src/types.ts
+++ b/packages/location-field/src/types.ts
@@ -113,6 +113,8 @@ export interface LocationFieldProps {
maxNearbyStops?: number;
type: string;
};
+ /** Order of geocoder results to display */
+ geocoderResultsOrder?: Array<"STATIONS" | "STOPS" | "OTHER">;
/**
* This is dispatched when the current position is null. This indicates that
* the user has requested to use the current position, but that the current
diff --git a/packages/location-field/src/utils.ts b/packages/location-field/src/utils.ts
index 6c26c1b00..1ac8194b5 100644
--- a/packages/location-field/src/utils.ts
+++ b/packages/location-field/src/utils.ts
@@ -120,3 +120,9 @@ export function getMatchingLocations(
return [];
}
+
+export const GeocoderResultsConstants = {
+ STATIONS: "STATIONS",
+ STOPS: "STOPS",
+ OTHER: "OTHER"
+};
diff --git a/packages/map-popup/src/MapPopup.story.tsx b/packages/map-popup/src/MapPopup.story.tsx
index 708885586..8b63eaaf0 100644
--- a/packages/map-popup/src/MapPopup.story.tsx
+++ b/packages/map-popup/src/MapPopup.story.tsx
@@ -8,6 +8,7 @@ export default {
const STOP = {
flex: false,
+ gtfsId: "9526",
id: "9526",
lat: 45.523009,
lon: -122.672529,