CityName

版本 1.1.0.0 (1.0 MB) 作者: Richard Moore
Given a latitude and longitude, return the name of the nearest city
295.0 次下载
更新时间 2016/5/3

查看许可证

编者注: This file was selected as MATLAB Central Pick of the Week

This uses a list of 5000 world cities from the GeoNames data set. Currently, it returns the name of the city with the closest latitude and longitude. An improvement that would better handle high latitude cases would use ground distance.

引用格式

Richard Moore (2024). CityName (https://www.mathworks.com/matlabcentral/fileexchange/56878-cityname), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2013a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Coordinate Reference Systems 的更多信息

Community Treasure Hunt

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

Start Hunting!

CityName/

版本 已发布 发行说明
1.1.0.0

Updated to use ground distance. Also adds options to: return region name, apply a population threshold, return the distance between the user-provided coordinates and the returned city.

1.0.0.0