mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-07 22:58:49 +00:00
fixed encoding for locations in connection query
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@710 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
db9964e822
commit
c4731e7de7
1 changed files with 5 additions and 3 deletions
|
@ -423,6 +423,8 @@ public final class BvgProvider extends AbstractHafasProvider
|
|||
return xmlMLcReq(constraint);
|
||||
}
|
||||
|
||||
private static final String URL_ENCODING = "ISO-8859-1";
|
||||
|
||||
private String connectionsQueryUri(final Location from, final Location via, final Location to, final Date date, final boolean dep,
|
||||
final String products)
|
||||
{
|
||||
|
@ -435,10 +437,10 @@ public final class BvgProvider extends AbstractHafasProvider
|
|||
|
||||
uri.append("?start=Suchen");
|
||||
|
||||
uri.append("&REQ0JourneyStopsS0ID=").append(ParserUtils.urlEncode(locationId(from)));
|
||||
uri.append("&REQ0JourneyStopsZ0ID=").append(ParserUtils.urlEncode(locationId(to)));
|
||||
uri.append("&REQ0JourneyStopsS0ID=").append(ParserUtils.urlEncode(locationId(from), URL_ENCODING));
|
||||
uri.append("&REQ0JourneyStopsZ0ID=").append(ParserUtils.urlEncode(locationId(to), URL_ENCODING));
|
||||
if (via != null)
|
||||
uri.append("&REQ0JourneyStops1.0ID=").append(ParserUtils.urlEncode(locationId(via)));
|
||||
uri.append("&REQ0JourneyStops1.0ID=").append(ParserUtils.urlEncode(locationId(via), URL_ENCODING));
|
||||
|
||||
uri.append("&REQ0HafasSearchForw=").append(dep ? "1" : "0");
|
||||
uri.append("&REQ0JourneyDate=").append(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue