mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 00:39:58 +00:00
autocomplete parses stationid where possible
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@129 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
d0162ed846
commit
c632118a6e
6 changed files with 36 additions and 19 deletions
|
@ -137,6 +137,21 @@ public class MvvProvider implements NetworkProvider
|
|||
public StationLocationResult stationLocation(final String stationId) throws IOException
|
||||
{
|
||||
throw new UnsupportedOperationException();
|
||||
|
||||
// private Pattern P_GEO =
|
||||
// Pattern.compile(".*?var latact = \"(\\d+\\.\\d+)\";.*?var lonact = \"(\\d+\\.\\d+)\";.*?", Pattern.DOTALL);
|
||||
|
||||
// final String urlGeo =
|
||||
// "http://www.mvv-muenchen.de/de/home/fahrgastinformation/mvv-netz/sis/sdb/googlemaps/index.html?id="
|
||||
// + id;
|
||||
// final CharSequence pageGeo = ParserUtils.scrape(urlGeo);
|
||||
// final Matcher mGeo = P_GEO.matcher(pageGeo);
|
||||
// if (mGeo.matches())
|
||||
// {
|
||||
// mvvLat = Double.parseDouble(mGeo.group(1));
|
||||
// mvvLon = Double.parseDouble(mGeo.group(2));
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
private String connectionsQueryUri(final LocationType fromType, final String from, final LocationType viaType, final String via,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue