<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div><br></div><div>Hello:</div><div><br>I'm reading data from OSM (Node, Way and Relations) but I have found that I am not getting all the existing data in OSM.<br><br>I downloaded a replica of mapping Cuba, with the following command:<br>http://overpass-api.de/api/interpreter?data=(node(-85.166,23.362,-74.026,19.725);<;>);out;<br><br>To read the data I use the framework osm4j. Here the fundamental part of the code:</div><div><br></div><div> Collection<OsmEntity> collection = new LinkedList<>();<br> collection.addAll(boroughsData.getNodes().valueCollection()) ;<br> collection.addAll(boroughsData.getWays().valueCollection()) ;<br> collection.addAll(boroughsData.getRelations().valueCollection()) ;<br><br> for (OsmEntity objectSpatial : collection) {<br> Map<String, String> TablTags = OsmModelUtil.getTagsAsMap(objectSpatial);<br><br> InsertionErrorsOntology err=null;<br> if (TablTags.size()!=0 ) {<br> err = WriteToponymInOntology(objectSpatial);<br> if (err == InsertionErrorsOntology.ISPRESENT)<br> continue; <br> }<br><br> for (int i=0; i< objectSpatial.getNumberOfTags() ;i++) {<br> String TaqsKey = objectSpatial.getTag(i).getKey();<br> String TagsValue = objectSpatial.getTag(i).getValue();<br><br> if (TagsValue != null && TaqsKey == "place")</div><div><br><br>However, the variable "TaqsKey" never takes the value "place" or the "waterway" value. Naturally, there are data on Cuba in OSM, with those values labels, I searched and OSM site.<br><br>Any suggestions?<br><br>Best regards, MAnuel Puebla.</div></div>
<br><br></body></html>