Powered by NextBillion.ai APIs
Decode polyline strings and GeoJSON LineStrings into readable coordinates and interactive map visualizations.
The Polyline Decoder is an essential tool that converts encoded polyline strings and GeoJSON LineStrings back into readable geographic coordinates. It supports both Google's polyline encoding format and GeoJSON LineString format, making it versatile for various mapping and routing applications.
Whether you're working with data from NextBillion.ai APIs, Google Maps, or other mapping services, this tool helps you visualize and understand the geographic paths represented by encoded strings.
Transform encoded strings into visual map representations to understand geographic paths and route quality.
Quickly decode and verify route data returned by mapping APIs to ensure accuracy and troubleshoot issues.
Convert between different coordinate formats and extract readable data from compressed polyline strings.
Decode polylines encoded using Google's polyline encoding algorithm. These are commonly returned by the NextBillion.ai Directions API and other routing services.
Example: _p~iF~ps|U_ulLnnqC_mqNvxq`@
To get encoded polylines from NextBillion.ai Routes API, set polylineEncoding
to ENCODED_POLYLINE
Decode GeoJSON LineString coordinate arrays. These provide higher precision and are commonly used in modern mapping applications.
Example: [[-74.006, 40.7128], [-71.0589, 42.3601]]
To get GeoJSON coordinates from NextBillion.ai Routes API, set polylineEncoding
to GEO_JSON_LINESTRING
Decode both encoded polylines and GeoJSON LineString coordinates
Built-in handling of escaped characters from JSON responses
Visual representation of decoded paths on an interactive map
Support for various coordinate formats and automatic parsing
The decoding process reverses the polyline encoding algorithm:
The tool automatically handles escaped characters (like \"
) that appear in JSON responses from APIs, so you can paste the raw response directly without manual processing.
Visualize and understand route data returned by mapping APIs
Debug routing issues by visualizing the actual paths on a map
Convert between different coordinate formats for various applications
Verify that encoded routes match expected geographic paths
This tool is designed to work seamlessly with NextBillion.ai's routing and mapping APIs:
Decode polylines returned by the Directions API to visualize calculated routes
Handle both encoded polylines and GeoJSON formats from the Routes API responses
Visualize optimized routes and verify the quality of route optimization results
Ready to start decoding polylines? Here's how:
Part of the NextBillion.ai Tools Suite - Empowering developers with powerful mapping and routing utilities