<div dir="ltr">Hey there,<div><br></div><div>I'm having trouble making sense of some gaps in the data I am getting from the nominatim search.</div><div><br></div><div>For a project that I am working on, I need to find the length of various streets. I've set up a program which does the following and works fine:</div><div><br></div><div>1. Query the raw osm file for all way elements with a particular name.</div><div>2. For each element, iterate over the node reference tags and retrieve the longitude and latitude coordinates of each node.</div><div>3. Add the distances between each pair of consecutive nodes if they are within the boundaries of a particular city.</div><div><br></div><div>Again, this program works fine, I'd be glad to include the code if it would be helpful, but have left it out for now to keep things concise.</div><div><br></div><div>To save time, I have installed nominatim. My current method is to search for elements using the street name as a query and return the geojson for that element:</div><div><br></div><div>/search?q=Chapel+Street&format=json</div><div>I've also tried:</div><div>/search?format=json&street=Chapel+Street</div><div>and I've tried this with a number of different streets.</div><div><br></div><div>The problem here is that a lot of segments of any particular street are left out. I have checked to verify that my local results are the same as thoseĀ </div><div><br></div><div>The following is a graph of the coordinates of every element / street segment returned by nominatim for a particular search query:</div><div><br></div><div><img src="cid:ii_153c37b4c836746e" alt="Inline image 1" width="394" height="335"><br></div><div><br></div><div>So each line and color represents a different element and the spaces in between are not accounted for. For comparison, here's the same graph with the same street name using my original program.</div><div><br></div><div><img src="cid:ii_153c37e523996009" alt="Inline image 2" width="394" height="335"><br></div><div><br></div><div>Here's another one:</div><div>Nominatim:<br></div><div><img src="cid:ii_153c38377566fa9f" alt="Inline image 4" width="394" height="335"><br></div><div><br></div><div>Raw OSM:</div><div><img src="cid:ii_153c384a36a2ceb0" alt="Inline image 5" width="394" height="335"><br></div><div><br></div><div>Is there anything that I could to get all of the street segments returned by a nominatim search?</div><div><br></div><div>Thanks in advanced, I will greatly appreciate any help you can give me!</div></div>