Example Code

International Latitude Longitude Lookup by Postcode

Code and Documents

Attachment

This example code uses the zippopotam.us public API in order to perform a lookup of latitude and longitude of a location using it's postcode or zipcode.

It can be useful when localizing applications with map-based UIs. The country list is automatically populated on launch from the API website.

Suffice to say, this requires an internet connection to work. There is no offline database, but I'm sure with a little more work it could support caching!

Page1.pngPage2.png

Code.png

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors