A smarter wit/location

Aleka Cheung
Jun 20, 2018 · 1 min read

We’re introducing a smarter wit/location starting with English apps this week. This entity can now provide more information on the captured location like timezone, locality, region or country.

For example, in the sentence “I want to go to Berlin, Germany”, wit/location captures “Berlin, Germany” as the location entity. Before, this would return {"value": "Berlin, Germany"} in the entity value. But with this update, you can also find a resolved key with the output below:

Click here to learn more about the entity’s format!

To further improve the quality and ranking of returned values, you can provide an optional coords map in context when calling the Wit API. This will factor into the ranking of your returned values, which will take the location's proximity to the coords into account. For example, by default, the captured wit/location “Kingston” will resolve to Kingston in Jamaica. But if you provide the coordinates of Toronto, for example, Kingston in Ontario will be ranked higher. Find out more here.

We are working towards extending this capability to more languages as well as address resolution. Check out our updated docs to learn about all available built-in entities here. Thank you for supporting Wit.ai and we'd love your feedback!

Wit.ai

Wit.ai makes it easy for developers to build applications and devices that you can talk or text to. Our vision is to empower developers with an open and extensible natural language platform. We'll use this blog to share news, feature announcements and stories from our community.

Aleka Cheung

Written by

software engineer @ wit.ai

Wit.ai

Wit.ai

Wit.ai makes it easy for developers to build applications and devices that you can talk or text to. Our vision is to empower developers with an open and extensible natural language platform. We'll use this blog to share news, feature announcements and stories from our community.