This AIMMS project illustrates the use of the LocationIQ AIMMS Library:
- It provides an alternative to the AIMMS function GeoFindCoordinates. The argument names are the same, and the return value is the same.
- Copy the library to your own application.
- Get an access token from LocationIQ
- Replace calls to GeoFindCoordinates by calls to
liq::pr_GeoFindCoordinates.
- It illustrates using the AIMMS DEX client library including its error handling.
Arguments:
- sp_newAccessToken: Input, String. The new access token to be used by
liq::pr_GeoFindCoordinates
Convert a physical address into geographic coordinates using LocationIQ. Returns 1 if the coordinates were successfully found, 0 if an error occurred.
Arguments:
- address: Input, String. A string representing the address for which the latitude and longitude coordinates have to be found.
- Latitude: Output, Numeric. A scalar numerical parameter that will contain the latitude coordinate of the specified address upon success.
- Longitude: Output, Numeric. A scalar numerical parameter that will contain the longitude coordinate of the specified address upon success.
- e-mail: Optional, String. Argument ignored, just provided for compatibility.
- url: Optional, String. Argument ignored, just provided for compatibility.