Hi Guys,
There are several Apps that can find the nearest public toilet to you,
and they work, obviously by measuring the distance between you,
and a database of toilets with iOS distance calcs discussed here before.
Can you find the closest street, or any line on a map closest to you with
native iOS features?
http://img.photobucket.com/albums/v186/ArtArt/Lines_zps840f16b8.jpg
If you try to look for the closest line point to identify the closest line,
the scenario in the image above is a disaster if the red dot is the current position.
So you need to calculate the foot of the perpendicular for every line segment.
I have implemented it.. basically how lock to road works,
but it's heavy, and if an iOS way is cheaper, I'd try it.
Also, I'd like to know if that functionality is available.
If not, I should put time into it.
Cheers, Art.
There are several Apps that can find the nearest public toilet to you,
and they work, obviously by measuring the distance between you,
and a database of toilets with iOS distance calcs discussed here before.
Can you find the closest street, or any line on a map closest to you with
native iOS features?
http://img.photobucket.com/albums/v186/ArtArt/Lines_zps840f16b8.jpg
If you try to look for the closest line point to identify the closest line,
the scenario in the image above is a disaster if the red dot is the current position.
So you need to calculate the foot of the perpendicular for every line segment.
I have implemented it.. basically how lock to road works,
but it's heavy, and if an iOS way is cheaper, I'd try it.
Also, I'd like to know if that functionality is available.
If not, I should put time into it.
Cheers, Art.