@stevejames If you can attached a sample dataset (as a Geopackage or zipped file geodb for example) that might help us see how you can build the association between the point and the correct street . i.e. does the point have the street name. Also, how do you know which side of the street is the correct side? But as a guess, AnchorSnapper or NeighborFinder with a Group By of the street name are probably your stating points. Ideally, you'd want to filter out points that are already in the correct place before moving the incorrect ones.
Hi @Mark Stoakes
Thanks, I've managed to sort it out.
At the moment I iterate though the properties and filter the street centre layer based on the street to make sure that property can only be moved closer to its street (yes each address has field so we can return the street reference. I do this using the Anchored Snapper (segment snapping). Now I have 2 points per property; the 'real' location and the point on the line. I can then use LineBuilder to build the line using the 2 points and use Snipper to reduce the line by x metres. Now I can extract the end point of the line which gives me the calculated property location.
We want to avoid the operator having to cross the street so operate a left hand curb approach; hence the need to move the property closer to the street but not on top of the street centre or ESRI wouldn't know which side of the street the property is on.
- The Blue line is the street centre line.
- The Red dots are the property points
- The Black lines are the lines for each property point snapped to closest part of the street centre; snapped to the line not the closest point on the line.
- The Yellow dots are the point on the line that is 5 metres shorter.
This now means that ESRI REST route optimiser associates each property to the correct street and enforces left hand curb approach, ie to stop the individual having to cross the street repeatedly. You'll guess that we're in the UK with the spelling and left hand curb approach.
Now the result of the ESRI Route optimiser associates every property to the correct street and enforces the left hand curb approach route.
I'm likely to process our 250k properties so we can just join the property route locations based on our property reference as this will reduce the load and time taken to process the daily routes.
Thanks