Route geometry compressed by default.
This commit is contained in:
		
							parent
							
								
									57b3f42b03
								
							
						
					
					
						commit
						68f0cb7684
					
				@ -35,7 +35,7 @@ or see http://www.gnu.org/licenses/agpl.txt.
 | 
				
			|||||||
#include "../Plugins/RawRouteData.h"
 | 
					#include "../Plugins/RawRouteData.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct _DescriptorConfig {
 | 
					struct _DescriptorConfig {
 | 
				
			||||||
    _DescriptorConfig() : instructions(true), geometry(true), encodeGeometry(false), z(18) {}
 | 
					    _DescriptorConfig() : instructions(true), geometry(true), encodeGeometry(true), z(18) {}
 | 
				
			||||||
    bool instructions;
 | 
					    bool instructions;
 | 
				
			||||||
    bool geometry;
 | 
					    bool geometry;
 | 
				
			||||||
    bool encodeGeometry;
 | 
					    bool encodeGeometry;
 | 
				
			||||||
 | 
				
			|||||||
@ -162,8 +162,8 @@ public:
 | 
				
			|||||||
        if(routeParameters.options.Find("geometry") == "false" ) {
 | 
					        if(routeParameters.options.Find("geometry") == "false" ) {
 | 
				
			||||||
            descriptorConfig.geometry = false;
 | 
					            descriptorConfig.geometry = false;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if("cmp" == routeParameters.options.Find("geomformat") || "cmp6" == routeParameters.options.Find("geomformat")  ) {
 | 
					        if("cmp" == routeParameters.options.Find("no") || "cmp6" == routeParameters.options.Find("no")  ) {
 | 
				
			||||||
            descriptorConfig.encodeGeometry = true;
 | 
					            descriptorConfig.encodeGeometry = false;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        switch(descriptorType){
 | 
					        switch(descriptorType){
 | 
				
			||||||
        case 0:
 | 
					        case 0:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user