Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Using bounds not filtering suggests #496

Description

@bayerlse

Short description

I am using bounds like:

import Geosuggest from 'react-geosuggest';

//...

<Geosuggest
        ref={geoSuggestEl}
        placeholder="placeholder"
        onSuggestSelect={onSuggestSelect}
        autoComplete="off"
        autoActivateFirstSuggest={true}
        country="de"
        ignoreEnter={false}
        bounds={bounds}
 />

where bounds defined as:

const southwest = new google.maps.LatLng(47.270111, 9.530952);
const northeast = new google.maps.LatLng(50.558835, 13.835972);
const bounds = new google.maps.LatLngBounds(southwest, northeast);

Expected results

I expected that by providing the boundary (bavaria), I am just getting suggestions within these
boundary.

Actual results

Instead of just getting suggestions within these boundary, I also get e.g. "New York" in my suggestions, shouldn't this be filtered out?

Reproduction steps

  1. Use provided code snippets from above
  2. Type in "New"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions