Should we allow people to hardcode state/city/county/etc in config (or a web ui), too?

These geoloc providers are all absolute trash, and most people probably have so few locations that they could manually manage them if the geoloc providers are being useless.

Adam.

 

From: observium <observium-bounces@observium.org> On Behalf Of Mike Stupalov via observium
Sent: 02 December 2019 15:14
To: Observium <observium@observium.org>; Daniel Johansson via observium <observium@observium.org>
Cc: Mike Stupalov <mike@observium.org>
Subject: Re: [Observium] Problems with Geolocation and static config of coordinates

 

Just tested your location string with osm, should be all fine:

$ ./test_geo.php -a "openstreetmap" '65.5861680,22.1594800'
Array
(
    [location] => 65.5861680,22.1594800
    [location_geoapi] => openstreetmap
    [location_lat] => 65.586168
    [location_lon] => 22.15948
    [location_city] => Luleå
    [location_county] => Luleå kommun
    [location_state] => Norrbotten County
    [location_country] => Sweden
    [location_status] => Geocoding ENABLED, try detect device coordinates:
  by REVERSE query (API: OPENSTREETMAP, LAT: 65.5861680, LON: 22.1594800) - FOUND
  GEO API REQUEST: https://nominatim.openstreetmap.org/reverse?lat=65.5861680&lon=22.1594800&addressdetails=1&format=json&accept-language=en&limit=1
  GEO LOCATION: Sweden (Country), Norrbotten County (State), Luleå kommun (County), Luleå (City)
  GEO COORDINATES: 65.586168 (Latitude), 22.15948 (Longitude)
)

Daniel Johansson via observium wrote on 02/12/2019 14:32:

Hi

I have 1 site that does not show on the map even though I have cofigured it with static coordinates both via "Manual coordinates" option on the devices on that location and also tried creating a config line with the syslocation tag to put it on the same coordinates.



$config['location_map']['Lulea'] = "65.5861680,22.1594800";




I can't understand why just this site has this problem and none of the other 50+ sites.
Any ideas?

/Daniel

 




_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium

 

--
Mike Stupalov
Observium Limited, http://observium.org