Nanoflow Commons - Help with Get Current Location error: Input parameter Address required

1
Remarks: - Mendix version 9.24.9 - Using the Nanoflow Commons library for getting current location and geocoding. - User access to devices handled + user role has got access to the User in Nanoflow Commons - Non persistent entity NP_Location created to store location (both Address and Latitude/Longditude) I am setting up getting the current location from the device and getting an address + coordinates for this, Latitude and Longitude. Unfortunately there is not a lot of documentation available for this.   Nanoflow setup The current nanoflow is likely too much, but I tried different scenarios and was not successful.  I keep getting the following error. In the Nanoflow Commons, the domain model does not show Address as an input parameter. Can someone please guide me what I am doing wrong and what the proper way for implementing the Geolocation JS action is?   An error occurred while executing an action of NativeMobile.Questionnaire_NewEdit_Step_2.actionButton3: Input parameter 'Address' is required Nanoflow stack:  "Call JavaScript Action" in nanoflow "NativeMobile.ACT_Location_GetCurrentLocation" Current page: NativeMobile.Questionnaire_NewEdit_Step_2 Stack: http://xxx.168.1.138:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:187274:156 executeAction@http://xxx.168.1.138:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:7652:22 res@http://xxx.168.1.138:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:7628:27 handleError$1@http://xxx.168.1.138:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:187429:34 tryCallOne@http://xxx.168.1.138:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:33711:16 http://xxx.168.1.138:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:33792:27 http://xxx.168.1.138:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:34687:26 _callTimer@http://xxx.168.1.138:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:34606:17 _callReactNativeMicrotasksPass@http://xxx.168.1.138:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:34636:17 callReactNativeMicrotasks@http://xxx.168.1.138:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:34799:44 __callReactNativeMicrotasks@http://xxx.168.1.138:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:28274:46 http://xxx.168.1.138:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:28086:45 __guard@http://xxx.168.1.138:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:28258:15 flushedQueue@http://xxx.168.1.138:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:28085:21 flushedQueue@[native code] invokeCallbackAndReturnFlushedQueue@[native code]  
asked
3 answers
1

This error message Input parameter 'Address' is required is only in GeoCode, not in GetCurrentLocation. Do you call the correct nanoflow?

answered
0

Hi Chris,

 

Thanks for the answer, when I debug this, it gets past the Get Current Location, but then breaks on the Geocode question. I will debug this during the week again (I left this part of the project, so will need to get back into it). Will let you know if I have more information, thanks for helping me!

 

@jonathan: No such luck in solving the issue, I rebuilt the whole flow, but I hit the same error every single time. Will debug it again this week and see when it actually breaks. 

answered
0

Found the solution:

 

- Use the Reverse GeoCode function, as the geolocation already gives back lat/long coordinates and you can get the address from the reverse action.

- Note that you need to parse the string into a decimal. 

- That resolves the address issue, but still can't get the Google maps widget to work, although the coordinates seem to be correct. But that is a different issue.

 

Thanks for the comments!

answered