0.0.3 • Published 7 years ago

react-native-google-matrix v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Google Distance Matrix API for react-native

Build Status npm version

This repository is forked from node-google-distance.
A simple react-native wrapper for Google Distance Matrix API

Installation

npm install --save react-native-google-matrix

Usage

var distance = require('google-distance');

distance.get(
  {
    origin: '-7.841879,110.409193',
    destination: '-7.741194,110.342588'
  },
  function(err, data) {
    if (err) return console.log(err);
    console.log(data);
});

to be updated...