mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 22:49:50 +00:00
Extract JSON nearby stations parameters to method
This commit is contained in:
parent
89219d7d19
commit
5c2b555d0d
18 changed files with 33 additions and 123 deletions
|
@ -134,13 +134,7 @@ public class NriProvider extends AbstractHafasProvider
|
|||
if (location.hasLocation())
|
||||
{
|
||||
final StringBuilder uri = new StringBuilder(queryEndpoint);
|
||||
uri.append('y');
|
||||
uri.append("?performLocating=2&tpl=stop2json");
|
||||
uri.append("&look_maxno=").append(maxStations != 0 ? maxStations : 150);
|
||||
uri.append("&look_maxdist=").append(maxDistance != 0 ? maxDistance : 5000);
|
||||
uri.append("&look_stopclass=").append(allProductsInt());
|
||||
uri.append("&look_x=").append(location.lon);
|
||||
uri.append("&look_y=").append(location.lat);
|
||||
uri.append(jsonNearbyStationsParameters(location, maxDistance, maxStations));
|
||||
|
||||
return jsonNearbyStations(uri.toString());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue