You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Map the country names in GraphQL:
on creating/updating node, GraphQL should use the longitude and latitude to set the country name using another service, so we will ignore the country and city fields from the chain and will overwrite it, and we can also add country code to manage regions in gridproxy
Issue Update:
I was searching for a tool to get the location data using longitude and latitude, i couldn't find any npm package that match our requirement.
but I have multiple options:
1- using https://geopy.readthedocs.io/en/stable/#installation
2 using OSM api https://nominatim.openstreetmap.org/reverse.php?lat=31.0371&lon=32.3844&zoom=18&format=jsonv2
3- i tried to check the maxmind database, We can get the geoname_id using lon/lat then get location data using that id, or we may manipulate the database and update the current country table to contain lat/long and its location
I don't think it is a good idea to rely on api or third party service, we may reach to another conflict later, i think we should maintain our database, and we can add it to geoip.grid.tf as a service
Issue update:
I wrote a script that merge ipv4 and ipv6 data and dropped the unnecessary columns,
working on cleaning the data and removing redundant coordinates
Map the country names in GraphQL:
on creating/updating node, GraphQL should use the longitude and latitude to set the country name using another service, so we will ignore the country and city fields from the chain and will overwrite it, and we can also add country code to manage regions in gridproxy
Originally posted by @0oM4R in threefoldtech/tfgrid-sdk-ts#3021 (comment)
we should use third party package to determine the country code then map it to the county table and update node location with the new values
The text was updated successfully, but these errors were encountered: