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/>
img credz: pixabay.com
Nice, you got a 96.0% @changeangels upgoat, thanks to @garox
Want a boost? Minnowbooster's got your back!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
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!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
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
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
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!!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Your contribution can't be approved yet. See the Utopian rules.
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]
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hello, all the commits are mine, how can I prove it? I mean, I already sync with github I thought that would be enough
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
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]
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
This post has received a 0.24 % upvote from @drotto thanks to: @garox.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit