You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

WPF桌面应用调用Azure Maps点高程API时出现404错误的问题

WPF桌面应用调用Azure Maps点高程API时出现404错误的问题

我正在开发一款WPF桌面应用,已经成功把Azure Maps地图嵌入到应用窗口里了。最近尝试获取某个指定坐标点的高程信息,按照相关API文档的调用方式写了代码,但调试时发现HttpResponseMessage response返回了404错误:

response = {StatusCode: 404, ReasonPhrase: 'Not Found', Version: 1.1,.....

我的调用方法大致如下(订阅密钥已隐藏):

private static string GetElevationFromCoordinates(double latitude, double longitude)
{
    string subscriptionKey = "myHiddenSubscriptionKey";
    string baseUrl = "https://atlas.microsoft.com/elevation/point/json";

    string...
}

备注:内容来源于stack exchange,提问作者Hadi Moosavi

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.15 12:34:33