Error with Native Geocoder plugin on iOS


#1

I use the function reverseGeocode(lat,lng) and it works fine on Android. But on iOS catches an error with message “Expected two non-empty double arguments”. I read the two arguments (lat,lng) from a database, where are saved as doubles. Cann anybody help me? Thanks…


#2

I solved it by using parseFloat() function of Javascript:

reverseGeocode(parseFloat(lat),parseFloat(lng))