mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 16:29:51 +00:00
AbstractEfaProvider: Support for address location IDs.
This commit is contained in:
parent
c2d77e8c8e
commit
586c071946
7 changed files with 303 additions and 155 deletions
|
@ -2963,6 +2963,9 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider {
|
|||
} else if (location.type == LocationType.POI && location.hasId()) {
|
||||
url.addEncodedQueryParameter("type_" + paramSuffix, "poi");
|
||||
url.addEncodedQueryParameter("name_" + paramSuffix, ParserUtils.urlEncode(location.id, requestUrlEncoding));
|
||||
} else if (location.type == LocationType.ADDRESS && location.hasId()) {
|
||||
url.addEncodedQueryParameter("type_" + paramSuffix, "address");
|
||||
url.addEncodedQueryParameter("name_" + paramSuffix, ParserUtils.urlEncode(location.id, requestUrlEncoding));
|
||||
} else if ((location.type == LocationType.ADDRESS || location.type == LocationType.COORD)
|
||||
&& location.hasCoord()) {
|
||||
url.addEncodedQueryParameter("type_" + paramSuffix, "coord");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue