How to find the third coordinate using MATLAB Mapping Toolbox?

1 回表示 (過去 30 日間)
Ali Soban
Ali Soban 2018 年 1 月 16 日
回答済み: Amy Haskins 2018 年 1 月 19 日
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