Fix entity parser
This commit is contained in:
parent
83fa922059
commit
83e90ee0a2
1 changed files with 3 additions and 0 deletions
|
@ -19,6 +19,9 @@ import net.osmand.util.Algorithms;
|
|||
public class EntityParser {
|
||||
|
||||
public static void parseMapObject(MapObject mo, Entity e) {
|
||||
parseMapObject(mo, e, e.getId());
|
||||
}
|
||||
public static void parseMapObject(MapObject mo, Entity e, long lid) {
|
||||
mo.setId(e.getId());
|
||||
if(mo instanceof Amenity) {
|
||||
mo.setId((e.getId() << 1) + ((e instanceof Node) ? 0 : 1));
|
||||
|
|
Loading…
Reference in a new issue