chaizhenhua/ngx-ip2location

ip2location_latitude and ip2location_longitude strips decimals

tjegan opened this issue · 4 comments

ip2location_latitude and ip2location_longitude are not showing the full value with decimals.
It strips the decimals.

hi @tjegan , thanks for your report. could you show me some example value of ip2location_longitude?

For example, The latitude and longitude of IP 115.111.23.215 should be 12.976230 and 77.603290 but ngx-ip2location returns 12 and 77 where as the ip2location database has value of 12.976230, 77.603290

Hi @tjegan . This has been fixed here 978e652.

Thanks! It works as expected.