Best match location data
Mostrar comentarios más antiguos
Hi
I have location data (longitude and latitude) for certain sites and I want to compare these two with a national databse to know the local authority of these sites + their postcodes.
I have two tables:
Sitename Latitude Longitude
14182-Pembroke Refinery 51.686081 -5.0271217
8059-New Rugby 52.376283 -1.2860374
8037-Ketton 52.636537 -0.54737666
And
Postcode Local authority Longitude Latitude
CV21 2RY Rugby -1.288555 52.376856
TR26 2JQ Cornwall -5.490944 50.207428
SY10 7RN Shropshire -3.067703 52.917641
SA71 5SJ Pembrokeshire -5.02713 51.686093
PE9 3SX Rutland -0.5462 52.636828
By best matching both the latitude and longitude data from the first table with the second, the postcode and local authority will be known.
Output: Sitename, Postcode, Local authority,
I appreciate your help with this.
4 comentarios
Joel Lynch
el 9 de Jun. de 2021
Without knowing how this data is stored in MATLAB's workspace, or how it is stored in external data files, it is impossible to provide a clear answer.
Also, are you intending to locate the closest coordinates? Or are you expecting exact lat/long matches?
AHMED FAKHRI
el 9 de Jun. de 2021
AHMED FAKHRI
el 9 de Jun. de 2021
dpb
el 9 de Jun. de 2021
See
doc pdist2
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Lengths and Angles en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!