How to find the third coordinate using MATLAB Mapping Toolbox?
Afficher commentaires plus anciens
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?
Réponses (1)
Amy Haskins
le 19 Jan 2018
0 votes
Try the reckon function:
https://www.mathworks.com/help/map/ref/reckon.html
Catégories
En savoir plus sur Web Map Service dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!