Giter Site home page Giter Site logo

uber-cordova-plugin's Introduction

uber-cordova-plugin

Apache Cordova/PhoneGap plugin for the Uber app.

This plugin provides a service for deep linking with the Uber app from a convenient, easy to use JavaScript interface.

We also recommend using this plugin in conjunction with our [angular module] (https://github.com/bradenericson/Uber-Angular-Module)

how to install

cordova plugin add com.jabb.plugin.uber

supported platforms

  • Android
  • iOS

example usage

var uberData = {
    clientId: "YOUR_CLIENT_ID",
    toLatitude: "37.802374", 
    toLongitude: "-122.405818",
    toAddress: "1 Telegraph Hill Blvd, San Francisco, CA 94133",
    toNickname: "Coit Tower",
    fromLatitude: "37.775818",
    fromLongitude: "-122.418028",
    fromNickname: "UberHQ",
    fromAddress: "1455 Market St, San Francisco, CA 94103",
    productId: "a1111c8c-c720-46c3-8534-2fcdd730040d"
};

window.uber(uberData, function(error) {
    console.log("Uber error: ", error);
});

api

For detailed information about these fields, see the [Uber developers website] (https://developer.uber.com/v1/deep-linking/)

clientId

Identifies the requesting application

productId

Product to populate in pickup

fromLatitude

Pickup latitude

fromLongitude

Pickup longitude

fromAddress

Fully qualified address of pickup

fromNickname

Nickname of pickup location

toLatitude

Dropoff latitude

toLongitude

Dropoff longitude

toAddress

Fully qualified address of dropoff

toNickname

Nickname of dropoff location

coming soon

  • Redirect to [m.uber.com] (https://m.uber.com/) when the mobile app isn't found on the users device.

uber-cordova-plugin's People

Contributors

ben-hunter-hansen avatar cluangrath avatar

Watchers

James Cloos avatar  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.