Are you using SparkSQL for the join? In that case I'm not quiet sure you
have a lot of options to join on the nearest co-ordinate. If you are using
the normal Spark code (by creating key-pair on lat,lon) you can apply
certain logic like trimming the lat,lon etc. If you want more specific
computing then you are better off using haversine formula.
<http://www.movable-type.co.uk/scripts/latlong.html>

Reply via email to