Hi everyone,

following on from our announcement last month of adding postcode to our geosearch / autosuggest widget, I am pleased to report another improvement: our geosearch / autosuggest widget now supports filtering by type of result.

"Screenshot of the OpenCage geosearch demo page showing a postcode search for 10437"

We have added a new field to the geosearch JSON response: _type, just like in our geocoding results, where we list the type of place the result is (for example: city or state or village). In addition we now all you to set the field _type as a parameter to limit results only to certain types (you can specify either a single type or multiple as a comma separated list for example: '_type': 'city,postcode'). You can also exclude specific types by prefacing them with a !, for example: '_type': '!village'. In this way you can fine tune the results for exactly your use case.

One other point - a customer asked if it was possible to specify multiple countrycodes to limit results to not just a single country. This has always been possible but was sadly not documented. Apologies! The geosearch documentation has now been updated to reflect that you can do things like:

`   countrycode: 'de,at,ch,li'

As ever, many thanks to the customers who pushed us to make these improvements. Please keep your feedback coming.

One final note - our geosearch Agent Skill, which you can share with your coding agent to simplify integrating geosearch, has been adjusted accordingly.

Happy geosearching,

Ed