Le 30 novembre 2012 02:04, Francescu GAROBY <windu...@gmail.com> a écrit :
> À la demande générale, j'ai uploadé une version de mon appli, sous la > forme d'un fichier > .jar<https://github.com/windu2b/OSM_checkTransportRelations/downloads> > > C'est beaucoup mieux ! Mais... /home/herve> java -jar checkTransportRelations-0.3.jar 2589274 GET http://api.openstreetmap.org/api/0.6/relation/2589274/full route=bus [CheckStopPosition]}The node 1 678 136 471 is not a public_transport=stop_position [CheckPlatform]node 1 678 136 496 is neither a public_transport=station nor a public_transport=platform java.lang.ArrayIndexOutOfBoundsException: 0 at org.windu2b.osm.check_transport_relations.data.osm.Way.getNode(Way.java:174) at org.windu2b.osm.check_transport_relations.data.osm.Way.getFirstNode(Way.java:200) at org.windu2b.osm.check_transport_relations.check.CheckWay.areContiguousWays(CheckWay.java:73) at org.windu2b.osm.check_transport_relations.check.CheckWay.check(CheckWay.java:47) at org.windu2b.osm.check_transport_relations.check.AbstractCheck.check(AbstractCheck.java:80) at org.windu2b.osm.check_transport_relations.check.CheckPublicTransport.check(CheckPublicTransport.java:74) at org.windu2b.osm.check_transport_relations.check.Check.check(Check.java:102) at org.windu2b.osm.check_transport_relations.Main.main(Main.java:49) /home/herve> Pour moi la difficulté est maintenant de trouver l'ID d'une ligne ; j'ai lu ta page http://wiki.openstreetmap.org/wiki/Caen/Transports_en_commun que tu as indiqué dans ton premier message, mais je n'ai pas compris comment je faisais pour trouver un ID avec ça. J'ai trouvé par chance une ligne de bus sur Caen, avec une relation "route_master_bus" et un ID de 2589274/1 (à http://osm.org/go/ervfqnf64-- ), mais ton logiciel a rouspété à cause du "/1", je l'ai supprimé (vous voyez que je suis un vrai geek), et j'ai obtenu ce que je donne en intro de ce message. De plus, je tiens à dire qu'il me semble que le tiret quadratin pourrait être avantageusement remplacé par l'expression <tiretQuadratin id="58901:AI97" class="onTiretQuadratin" lang="FR-fr"/> qui a l'avantage d'être compatible..
_______________________________________________ Talk-fr mailing list Talk-fr@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-fr