Here Rest API: How to limit the suggestion result in an area?
<p>I need Here map API to auto complete the address. I am trying to use Place suggestion API which is documented: <a href="https://developer.here.com/api-explorer/rest/places-search/search-suggestion" rel="nofollow">https://developer.here.com/api-explorer/rest/places-search/search-suggestion</a></p>

<p>However the API behavior surprises me. I was trying to get suggestion in Washington area with query "20" (a partial house number):</p>

<pre><code>curl -X GET -H "X-Map-Viewport: -125.0061,45.6674,-120.6775,48.7269" -H "Cache-Control: no-cache" "https://places.demo.api.here.com/places/v1/suggest?q=20&amp;app_id=DemoAppId01082013GAL&amp;app_code=AJKnXv84fjrb0KIHawS0Tg&amp;size=5"

{
  "suggestions": [
    "205th Ave KP S, Lakebay, WA 98349, USA",
    "Mall 205",
    "204th Avenue KP S, Lakebay, WA 98349, USA",
    "202nd Avenue KP S, Lakebay, WA 98349, USA",
    "McMenamins"
  ]
}
</code></pre>

<p>This looks fine to me. </p>

<p>But what surprises me is when I start querying "2021", it's returning me addresses in Mexico:</p>

<pre><code>curl -X GET -H "X-Map-Viewport: -125.0061,45.6674,-120.6775,48.7269" -H "Cache-Control: no-cache" "https://places.demo.api.here.com/places/v1/suggest?q=2021&amp;app_id=DemoAppId01082013GAL&amp;app_code=AJKnXv84fjrb0KIHawS0Tg&amp;size=10"

{
  "suggestions": [
    "2021 California",
    "20218, Aguascalientes, Mexico",
    "Taco Bell",
    "20219, Aguascalientes, Mexico",
    "2021 Restaurant",
    "20216, Aguascalientes, Mexico",
    "2021 Wireless",
    "20210, Aguascalientes, Mexico",
    "2021.Interactive, LLC",
    "20213, Peñas Blancas, Costa Rica"
  ]
}
</code></pre>

<p>I'd rather to get no result if it cannot find match in the area than getting results out of the bounding box.</p>

<p><strong>My question</strong>: how can I actually limit the search area? Another question is how to filter out results which are not addresses?</p>