4 ms·
Out of interest - how are you getting location? I didn't get a consent warning for client side geolocation and it seems accurate so it doesn't appear to be IP b
by arethuza 7y ago
Out of interest - how are you getting location? I didn't get a consent warning for client side geolocation and it seems accurate so it doesn't appear to be IP based (my public IP appears to be a few hundred miles south of my actual location).
- gregmac 7y agoGoogle Geolocation API https://github.com/ksho/whenisgoldenhour.com/blob/master/pages/index.tsx#L11 https://github.com/ksho/whenisgoldenhour.com/blob/master/pag...
- kmano8 7y agoI'm using the google geolocation API https://developers.google.com/maps/documentation/geolocation/intro https://developers.google.com/maps/documentation/geolocation... at https://github.com/ksho/whenisgoldenhour.com/blob/master/pages/index.tsx#L11 https://github.com/ksho/whenisgoldenhour.com/blob/master/pag... I've gone back and forth on replacing this with a browser-based location request so the user is aware what's going on -- the tradeoff being the friction of clicking the allow button.
- headsupernova 7y agoLooks like it's using Google's geolocation API: https://developers.google.com/maps/documentation/geolocation/intro https://developers.google.com/maps/documentation/geolocation...
- SpikedCola 7y agoAppears to be using google's geocoder [0] My location resolved a province over, so I suspect it is at least somewhat IP-based (or IP + some other magic) [0] https://github.com/ksho/whenisgoldenhour.com/blob/3c0d7f0acfcaeae36c969221f5b5ef9a62a6c3f7/pages/index.tsx#L11 https://github.com/ksho/whenisgoldenhour.com/blob/3c0d7f0acf...