Coder Social home page Coder Social logo

suhair / botbuilder-location Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tasdienes/botbuilder-location

0.0 2.0 0.0 1.37 MB

An open-source location picker control for Microsoft Bot Framework powered by Bing Maps REST services.

License: MIT License

JavaScript 47.87% TypeScript 52.13%

botbuilder-location's Introduction

Bing Location Control for Microsoft Bot Framework

Overview

The Bing location control for Microsoft Bot Framework makes the process of collecting and validating the user's desired location in a conversation easy and reliable. The control is available for C# and Node.js and works consistently across all channels supported by Bot Framework.

Location Control Top Screenshot

Use Case and Features

Bots often need the user's location to complete a task. For example, a Taxi bot requires the user's pickup and destination address before requesting a ride. Similarly, a Pizza bot must know the user's delivery address to submit the order, and so on. Normally, bot developers need to use a combination of location or place APIs, and have their bots engage in a multi-turn dialog with users to get their desired location and subsequently validate it. The development steps are usually complicated and error-prone.

The Bing location control makes this process easy by abstracting away the tedious coding steps to let the user pick a location and reliably validate it. The control offers the following capabilities:

  • Address look up and validation using Bing's Maps REST services.
  • User location returned as strongly-typed object complying with schema.org.
  • Address disambiguation when more than one address is found.
  • Support for declaring required location fields.
  • Support for FB Messenger's location picker GUI dialog.
  • Open-source code (C# and Node.js) with customizable dialog strings.

Prerequisites

To start using the control, you need to obtain a Bing Maps API subscription key. You can sign up to get a free key with up to 10,000 transactions per month in Azure Portal.

Getting Started

Navigate to the C# or Node.js folder and follow the guide to add the control to your Bot Framework bot.

Examples

The examples show different location selection scenarios supported by the Bing location control.

Address selection with single result returned

Single Address

Address selection with multiple results returned

Multiple Addresses

Address selection with required fields filling

Required Fields

Address selection using FB Messenger's location picker GUI dialog

Messenger Location Dialog

More Information

Read these resources for more information about the Microsoft Bot Framework, Bot Builder SDK and Bing Maps REST Services:

botbuilder-location's People

Contributors

kgrashad avatar iassal avatar craigomatic avatar pcostantini avatar jpsaroudakis avatar mbadreldin avatar

Watchers

Suhair Hassan E avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.