Helper to use google polyline steemCreated with Sketch.

in utopian-io •  8 years ago 

Helper to use google polyline directly in react-native-maps.

Install via npm

$ npm install --save rn-maps-polyline

Usage

import RNPolyline  from 'rn-maps-polyline'
//or
import { decode, encode } from 'rn-maps-polyline'

or

var RNPolyline  = require('rn-maps-polyline')
RNPolyline.encode([
  { latitude: 37.772, longitude: -122.214 },
  { latitude: 21.291, longitude: -157.821 },
  { latitude: -18.142, longitude: 178.431 },
  { latitude: -27.467, longitude: 153.027 }
])

> '_jpeFn||hVf}qcBvnixEfwtoF_fic_Afh|w@~u`zC'
RNPolyline.decode('_jpeFn||hVf}qcBvnixEfwtoF_fic_Afh|w@~u`zC')

> [
  { latitude: 37.772, longitude: -122.214 },
  { latitude: 21.291, longitude: -157.821 },
  { latitude: -18.142, longitude: 178.431 },
  { latitude: -27.467, longitude: 153.027 }
  ]
```<br /><hr/><em>Open Source Contribution posted via <a href="https://utopian.io/utopian-io/@garox/helper-to-use-google-polyline">Utopian.io</a></em><hr/>
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Calling @originalworks :)
img credz: pixabay.com
Nice, you got a 96.0% @changeangels upgoat, thanks to @garox
Want a boost? Minnowbooster's got your back!

This post has received a 25.00 % upvote from @nettybot thanks to: @garox.

Send 0.100 SBD to @nettybot with a post link in the memo field to bid on the next vote.

Oh, and be sure to vote for my owner, @netuoso, as Steem Witness

Have a great day!

This post has received a 100.00 % upvote from @steemdiffuser thanks to: @garox. Steem on my friend!

Get Upvotes, Join Our Trail, or Delegate Some SP

Hello @garox this post had issues entering the Utopian feed. Has been fixed. https://utopian.io/utopian-io/@garox/helper-to-use-google-polyline

A moderator will soon review this contribution. Thank you so much!!

Your contribution can't be approved yet. See the Utopian rules.

Code Development Category
Contributions under this category must include links to pull requests, branches, forks etc. where the code has been submitted.

You only took text from README. We need to be able to verify your work. If you did not contribute to the project I will have to reject this post.

You can contact us on Discord.
[utopian-moderator]

Hello, all the commits are mine, how can I prove it? I mean, I already sync with github I thought that would be enough

The sync feature pushes posts in some of the categories to GitHub repositories. To your account verification, we could see that you use the same profile image on Utopian and on GitHub.

Approved.

You can contact us on Discord.
[utopian-moderator]

This post has received a 0.24 % upvote from @drotto thanks to: @garox.