Fix entity parser

This commit is contained in:
Victor Shcherb 2015-02-10 00:24:22 +01:00
parent 83fa922059
commit 83e90ee0a2

View file

@ -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));