How can I find coordinates via matlab command?

3 ビュー (過去 30 日間)
Ivan Mich
Ivan Mich 2020 年 12 月 7 日
回答済み: Ameer Hamza 2020 年 12 月 7 日
Is there a way to find geographical coordinates (Latitude and Longtitude) by only having the name of the city.
I have a file which has names of different places.
Is there a way to find their coordinates via matlab?

回答 (1 件)

Ameer Hamza
Ameer Hamza 2020 年 12 月 7 日
It appears that there is no built-in function. You will need to use the API of an external service, e.g., google map, to get this info. You can use webread() to send requests to the API. However, the initial setup for interacting with the API can be a bit complicated. For example, check here: https://www.mathworks.com/matlabcentral/answers/157633-how-getting-coordinates-of-geagraphical-locations

カテゴリ

Help Center および File ExchangeGeodesy and Mapping についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by