简体   繁体   中英

Here SDK - Android Navigate Edition - Could I check if a coordinate is valid?

We tried to migrate Here SDK from Premium Edition to Navigate Edition. And there is a method to check the validity of a coordinate in Coordinate class in Premium Edition. But we can not find such as the method in Navigate Edition.

I have tried to seach the methods in GeoCoordinates class in Navigate Edition. But I can not find it.

I wish I could confirm the validity of a coordinate before I used the coordinate. How can we do that in Navigate Edition?

You can do this check on your own: If the latitude is in the range [-90, 90] and longitude in the range [-180, 180] it can be considered to be valid.

At least, a formal validity check is not offered (yet) for the new 4.x HERE SDK platform.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM