<div dir="ltr">Thanks Sarah!<div><br></div><div>It works now.</div><div><br></div><div>Best,</div><div>-Allan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 29, 2016 at 3:10 PM, Sarah Hoffmann <span dir="ltr"><<a href="mailto:lonvia@denofr.de" target="_blank">lonvia@denofr.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
On Tue, Mar 29, 2016 at 02:23:48PM -0400, Allan Visochek wrote:<br>
> Hey there,<br>
><br>
> I'm having trouble making sense of some gaps in the data I am getting from<br>
> the nominatim search.<br>
><br>
> For a project that I am working on, I need to find the length of various<br>
> streets. I've set up a program which does the following and works fine:<br>
><br>
> 1. Query the raw osm file for all way elements with a particular name.<br>
> 2. For each element, iterate over the node reference tags and retrieve the<br>
> longitude and latitude coordinates of each node.<br>
> 3. Add the distances between each pair of consecutive nodes if they are<br>
> within the boundaries of a particular city.<br>
><br>
> Again, this program works fine, I'd be glad to include the code if it would<br>
> be helpful, but have left it out for now to keep things concise.<br>
><br>
> To save time, I have installed nominatim. My current method is to search<br>
> for elements using the street name as a query and return the geojson for<br>
> that element:<br>
><br>
> /search?q=Chapel+Street&format=json<br>
> I've also tried:<br>
> /search?format=json&street=Chapel+Street<br>
> and I've tried this with a number of different streets.<br>
><br>
> The problem here is that a lot of segments of any particular street are<br>
> left out. I have checked to verify that my local results are the same as<br>
> those<br>
<br>
Try to add a dedupe=0 to your parameters, possibly combined with a<br>
limit=100. This should give you all the missing segments. You will<br>
still have to combine them yourself. There is a feature request open<br>
to combine the segments already in the server but so far nobody has<br>
found the time to implement it:<br>
<a href="https://github.com/twain47/Nominatim/issues/332" rel="noreferrer" target="_blank">https://github.com/twain47/Nominatim/issues/332</a><br>
<br>
Kind regards<br>
<span class="HOEnZb"><font color="#888888"><br>
Sarah<br>
</font></span></blockquote></div><br></div>