Re: A functioning Public Transport plugin

2020-11-13 Thread Roland Olbricht via josm-dev

Hi all,

thank you for the feedback.


Furthermore, this plugin is closed-source (as far as I know), so it cannot be 
"fixed".


The plugin is open source, see
https://github.com/openstreetmap/josm-plugins/tree/master/public_transport

The problem is that maintaining the plugin is a lot of work. I abandoned
the development long ago because public transport v2 would have meant
too much work, because the scheme has inherent flaws. Any such flaw does
fall on the developer multiple times, for implementation, for developing
test cases for all the undefined corner cases, for a UI that explains
what the software actually does.

By contrast, updating to a single different set of tags for stop poles
is not a substantial problem.


This would mean you could immediately add all the stops in the click of a 
button, and sort broken relations in a click of a button.


Since writing this plugin, the relation editor has superseded most of
the way sorting features. Thus, it no longer makes sense to duplicate
the sorting capabilities in a distinct plugin.

I would nowadays add buttons to the relation editor rather than a
separate relation editor.

There is also an unfinished routing algorithm in the plugin. I never had
found a reasonable UI to exhibit that to the end user.

Best regards,

Roland



Re: JOSM development in the last year

2020-01-02 Thread Roland Olbricht



>> - 54% Windows, 37% Linux, 9% MacOS (Linux numbers are going up...)


I'm surprised by the Windows/Linux ratio.
I always noticed a quite stable ratio around 70% Windows, 20% Linux, 10%
Mac (+/- 5% margin).
Isn't just that more Linux people used JOSM during the holidays than
Windows people? Such an increase looks strange otherwise.


It might be Oracle's license conditions. In the corporate environment,
using the Oracle JRE requires a commercial license. Installing the JRE
of OpenJDK is possible and JOSM runs with it, but counter-intuitive in
multiple steps.

I myself have written instructions for my collegues how to install the
OpenJDK.

Given that Windows is in particular popular amongst companies and users
with limited tech competence, that new threshold might have scared off
users.

Best regards,
Roland



Re: josm Keyboard input stops working

2019-01-07 Thread Roland Olbricht

Hi all,


Look at https://josm.openstreetmap.de/ticket/13160

For me its dead simple to reproduce ... Still exists in current josm
with openjdk 8 and 11. I am on Linux but others have reported the
Problem on Windows.


I had the issue both on Windows and Linux (Windows 7 64Bit, Ubuntu 
14.04, and Ubuntu 16.04). It did never materialize in any reproducible 
way, sometimes after barely a minute, sometimes not on session over 
multiple hours.


At the moment, everything is fine (on Windows 7 and Ubuntu 16.04). This 
includes the setting that you have described.


Given that the JOSM core developers might face the same situation, I 
suggest to collect as much information as possible, in particular the 
Java environment, the active plugins, all their version and so on.


Could you check whether the problem persists even on a JOSM without any 
plugins?


Best regards,
Roland



Re: [josm-dev] function to find nodes next to a way

2013-02-20 Thread Roland Olbricht
Hi,

 I would like to be able to find nodes with certain tags next to a way,
 within a few meters (configurable).

Please have a look at the public transport plugin, in class 
RoutePatternAction, at lines 1806-1819.

This does exactly the desired. I agree it would bencessary to refactor the 
code. I'll be happy to answer questions for it.

Cheers,

Roland


___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] route handling (was: Find bus stops along a way)

2012-11-08 Thread Roland Olbricht
Hi,

 I have been looking at that and I'll have to look again as it seemed quite 
 complicated :-)

Yes, it is. Unfortunately it needs a lot of refactoring. It is even not the 
most efficient approach, but I simply went short of time.

 I did see that you only use highway=bus_stop for bus routes, but I'm
 slowly but surely in the process of converting all of them to
 public_transport=platform.

That's a good idea. I think at current state of affairs it should take into 
account both highway=bus_stop and public_transport=platform. Feel free to 
update the code.

 I have created a Python script which does quality control on numbered node
 cycle and walking routes, which I'd like to extend to PT now. As a first
 step I'd like to do what your plugin does; detect stops and propose to add
 them to the route. Later on, I'd like to actually create a route relation
 based on stops that need to be served. (Which will, of course, need to be
 checked manually for correctness before it is uploaded)

There is even code prepared for this in the plugin. A call to
new PublicTransportAStar(Node start, Node end).shortestPath()
will return a data structure that contains the shortest path found by an 
A*-algorithm, written as partial ways (because it may use ways only partial). 
What is missing here is an appropriate filter (don't route over stairs or other 
non-streets), which would go where the comment
// Further tests whether the way is eligible.
is. And the projection from off-road bus stops to starting nodes. And then to 
make sense of the result. In particular, the plugin has no code to split ways 
automatically, and JOSM won't mark partly ways AFAIK.

Once again: feel free to work with the code. Given my OSM agenda, I won't work 
on the public_transport plugin code before the end of the year, but I will give 
any help to make it useful (or recycle the useful parts in a new plugin).

Cheers,

Roland

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Find bus stops along a way

2012-11-07 Thread Roland Olbricht
Hi,
 
 I want to find all bus stops along a side of the road.

There is a function doing this in the plugin public_transport. Feel free to 
copy it.

Cheers,

Roland

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Another 66 relations bite the dust

2010-05-10 Thread Roland Olbricht
 [1] http://trac.openstreetmap.org/ticket/2652

You can get an approximate solution:
http://78.46.81.38/api/rels-extended?id=34631
This points to the OSM3S server and returns the desired relation-ids for the 
given relation id.

It's compressed XML at the moment, but I can change that to are more 
appropriate format if the format is the problem. The second drawback is that 
the server is some hours behind the main database, but most of the relations 
mentioned here are days old or even older and would have been found by this 
API call.

But still this would be a great step from deleting relations accidentally.

Incidentally, the server is down this evening from 22h15 to 12h00 tomorrow 
because the server provider (Hetzner) is moving inside Germany.

Cheers,

Roland

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


[josm-dev] Where to put documentation for a plugin?

2010-02-19 Thread Roland Olbricht
Hello everybody,

where shall I put the documentation for my JOSM plugin? I've written a html 
file containing all the information about the public transport plugin into the 
svn, but it is delivered as text/plain:
http://svn.openstreetmap.org/applications/editors/josm/plugins/public_transport/resources/public_transport.html

I suspect that this is intentional. But where is the designated place for the 
documentation? Where should the more info in the plugin download list point 
to?

Cheers,

Roland

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


[josm-dev] Java 1.5 versus 1.6 for plugins

2010-02-12 Thread Roland Olbricht
Hello,

I've just developed a plugin (Public Transport) for JOSM which should be as 
portable as possible. Now I've received a request of a Mac OS user using Java 
1.5 that the plugin doesn't work.

I've set
property name=ant.build.javac.target value=1.5/
in 
http://svn.openstreetmap.org/applications/editors/josm/plugins/public_transport/build.xml

and I don't use any special features of Java 1.6. So has anybody an idea why 
the plugin doesn't work with Java 1.5?

Cheers,

Roland

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev