Skip to content

Tool developed by Carlos Pedroza to decode and encode Polylines from Google Maps API based on Jeffrey Sambells method.

License

Notifications You must be signed in to change notification settings

carlospedroza27/PolylineTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Polyline Tools

Hello all, here I present to you my first App Inventor extension ever made for decoding and decoding polylines from Google Maps API. First, I found the Encoding Polyline Algorithm Format and tried to reverse it using blocks, but then I found the Jeffrey Sambells' method and I felt like learning how to make an extension.

So this is it! I hope you find this useful and you find how to make it better, please let me know so I can learn from it.

This extension was made in colaboration with Diego Pedroza.

Simple funcion: Decode with only one parameter. Based on Jeffrey Sambells' method.

  • encodedPolyline which is the string that will be decoded. And it returns a list of paired lat/lng (DecodedPolyline).

Simple funcion: EncodeLatORLng with only one parameter. Based on Sciolist's method.

  • latORlng which is the number that will be encoded following the Encoding Polyline Algorithm Format. And it returns a string with lat/lng encoded (EncodedPolyline).

Simple funcion: EncodePoint with only one parameter. Based on Sciolist's method.

  • point which is the YailList with the latitude and longitude that will be encoded following the Encoding Polyline Algorithm Format. And it returns a string encoded (EncodedPolyline).

About

Tool developed by Carlos Pedroza to decode and encode Polylines from Google Maps API based on Jeffrey Sambells method.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages