mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 06:39:50 +00:00
Introduce location type for plain coordinates.
This commit is contained in:
parent
71d88fcd18
commit
4b65f0145c
70 changed files with 186 additions and 174 deletions
|
@ -51,7 +51,7 @@ public class LocationController
|
|||
@ResponseBody
|
||||
public NearbyLocationsResult nearby(@RequestParam("lat") final int lat, @RequestParam("lon") final int lon) throws IOException
|
||||
{
|
||||
final Location location = new Location(LocationType.ANY, lat, lon);
|
||||
return provider.queryNearbyLocations(EnumSet.of(LocationType.STATION, LocationType.POI), location, 5000, 100);
|
||||
final Location coord = Location.coord(lat, lon);
|
||||
return provider.queryNearbyLocations(EnumSet.of(LocationType.STATION, LocationType.POI), coord, 5000, 100);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue