PT routing ignores 'points_encoded=true'
Author: schaemarCreated Mar 4, 2022Updated Sep 8, 2026
Labelsbuggood first issue
Describe the bug
When using PT routing, the points are by default returned NOT encoded, also ignoring points_encoded=true
To Reproduce
Steps to reproduce the behavior. For examples:
- cloned gh: 5c06103
- follow quick start on transit routing
- use same request as the UI with just one modification
points_encoded=true:http://localhost:8989/route?point=52.597917%2C13.435316&point=52.550123%2C13.34197&type=json&locale=en-US&key=&pt.earliest_departure_time=2022-03-04T11%3A29%3A00.000Z&elevation=false&profile=pt&points_encoded=true
Expected behavior
Response should return points_encoded=true and encoded points to comply with docs
System Information
Ubuntu 20.04.4 LTS, OpenJDK 14.0.2, 5c06103
Screenshots & Logs relevant part of response:
{
"distance": 907.113,
"weight": 2547413.0,
"time": 2547413,
"transfers": 2,
"points_encoded": false,
"bbox": [
13.342064,
52.546176,
13.442972,
52.597789
],
"points": {
"type": "LineString",
"coordinates": [
[
13.435416,
52.597789
],
[
13.435156,
52.597714
],Source: graphhopper/graphhopper