-
Notifications
You must be signed in to change notification settings - Fork 33
Description
Context
We're using the react-native-radar SDK to validate US ZIP codes by geocoding them with the following method:
const result = await Radar.geocode({ address: ${zipCode} });
Expected Behavior
For valid US ZIP codes (e.g., 04945, 10001), the geocoder should return the correct city, state, and country within the United States.
Actual Behavior
In some cases, even with valid US ZIP codes, the SDK returns locations from other countries. For example:
04945 (a valid ZIP in Maine) sometimes resolves to a location in South Korea.
Impact
This results in false negatives during ZIP code validation and breaks expected behavior for US-based users.
Question
Is there a recommended way to restrict or bias Radar.geocode to only return US-based results?
Could this be an issue with Radar’s underlying geocoding logic?
Any guidance or recommended workaround would be appreciated!
