To retrieve the lon,lat position you need to perform a position conversion command on the x,y coordinates of the POI. The item number is always 2 because you always need to send - the input position - the output type (i.e. lon/lat or road/pos ....). In your case the value type is 0x00 (lon/lat) see http://www.sumo.dlr.de/wiki/TraCI/Protocol#Position_Representations
As an implementation reference, take a look at function convertGeo in sumo/tools/traci/_simulation.py regards, Jakob 2017-01-10 15:03 GMT+01:00 Nam Nguyen <[email protected]>: > Hi, > > > I am trying to convert positions i get vom a ContextSubscription from > POI's to LonLat position. my problem is that i cant use the command > convert2D because the POIs are not on any edges so i tried using > http://www.sumo.dlr.de/wiki/TraCI/Simulation_Value_ > Retrieval#Command_0x82:_Position_Conversion but i dont quite understand > the parameter. what is the value type and what is the item number and why > do i need 2? > > on the bottom right corner is the position given in XY and LonLat. can i > retrieve the position in LonLat directly if i got a map from osm? > > thanks for your help > > > > best regards > > Nam > > ------------------------------------------------------------ > ------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
