New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Geolocation to Country transformer #154
Comments
Working on this. |
Is the idea to use a reverse geolocation service? http://www.geonames.org/export/web-services.html#countrysubdiv |
@tovbinm I stumbled across the following projects which do offline reverse geocoding. Do these look in line with what you were thinking? https://github.com/AReallyGoodName/OfflineReverseGeocode (java) |
Yes, but if possible simpler ;) For a start we would like to have a transformer to return a country code from a pair of coordinates. |
…ansformer) Uses reverse geolocation lookup code at https://github.com/AReallyGoodName/OfflineReverseGeocode
Hello! I'm just getting started with TransmogrifAI and I'd love to work on this issue. I see a couple of attempts marked 'Closed,' but this issue is still marked 'open.' Is this issue still accepting solutions? |
We closed those cause there were no use-case for us to support exploration of this direction further. You can have a look of what I did #227. It was based on the idea of mapping each (lat,lon) coordinate to the nearest city, and then assuming the country of that city as the result. This approach would operate correctly on majority of coordinates, but still have some edge cases. An alternative approach was to locate a encoded country borders map, convert it to convex polygons, then query which polygon contains each location. Unfortunately no good source of publicly accessible country borders was found. |
Got it, thanks so much! I'll get back to this if I find a reliable public service, and I'll look into other issues to fix or features to implement. :-) |
Problem
We would like to be able to treat GeoLocation values as categorical features.
Solution
Add unary transformer to convert
Geolocation
values intoCountry
.Alternatives
N/A
The text was updated successfully, but these errors were encountered: