'Angular - Get zip code based on Geo Location Based on IP

Scenario:

When user enters the website I am trying to Pop up the default browser pop up which asks for location permission. If user accepts, need to get the zip of the user based on the ip address. Can anyone help me to achieve this scenario. Any free services.

I am using Angular 10 as the font end. Any help would be highly appreciated. I searched a lot in stack overflow and did not find any service that returns zipcode based on ip which open source. TIA



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source