Get SW & NE corners of Google Static Maps API

后端 未结 1 1530
自闭症患者
自闭症患者 2021-01-21 15:00

I\'m having a problem with getting the bounds of my Google Static Map in my Unity application. I\'ve tried multiple answers found here on stackoverflow.

.NET related que

相关标签:
1条回答
  • 2021-01-21 15:43

    The constructor for Coordinate class accepts (lng, lat) instead of (lat, lng) as you might expect, so the parameters are in a different order than you are passing in.

    I also noticed that Coordinate's ToString override prints as (lng, lat) as well, so it could be confusing if you expect to see (lat, lng).

    Simply swap both of these in the static API.

    0 讨论(0)
提交回复
热议问题