How to find the third coordinate using MATLAB Mapping Toolbox?

조회 수: 1(최근 30일)
Hi everyone! I am using google apis for mapping a certain point on google earth. For example mapping a certain point on google earth given its coordinates from MATLAB using the following code:
lat_1 = 44.05897222222222 ; % example latitude
long_1 = 91.97936833333333 ; % example longitude
url = sprintf('http://maps.googleapis.com/maps/api/geocode/xml?latlng=%.4f,%.4f&sensor=true', lat_1, long_1) ;
buffer = urlread(url);
documentNode = xmlread(url) ;
formattedAddressNodes = documentNode.getElementsByTagName('formatted_address') ;
for k = 1 : formattedAddressNodes.getLength()
fprintf('%s\n', ...
char(formattedAddressNodes.item(k-1).getTextContent())) ;
end
filename = 'point.kml' ;
kmlwritepoint(filename,lat_1,long_1);
winopen(filename)
Now if I know 02 different coordinates and their in between distance and angles from a particular point source respectively , how can I calculate the third coordinate on google maps? Can I achieve this by applying simple geometry?

답변(1개)

Amy Haskins
Amy Haskins 2018년 1월 19일
Try the reckon function:
https://www.mathworks.com/help/map/ref/reckon.html

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by