Hi, I’m running Graphhopper locally on my android. I’m attempting to load vehicle profiles from json using the following code.
ObjectMapper jsonOM = Jackson.newObjectMapper();
return jsonOM.readValue(new File(customModelLocation), CustomModel.class);
However, even when I use the official examples from here Examples For Customizable Routing - GraphHopper Directions API
I get the following error message
Cannot deserialize instance of
java.util.LinkedHashMap<java.lang.Object,java.lang.Object> out of START_ARRAY token
Digging into the indices, it appears to be objecting to the open square bracket after after “priority”
For example in this file, (from the above link)
“if”: “road_class == PRIMARY”,
I get the following detail
[Source: (File); line: 2, column: 14]
Any advice would be welcome, thanks!