Extension talk:GeoData

From MediaWiki.org
Jump to: navigation, search
Start a new discussion

Contents

Thread titleRepliesLast modified
Filter results server-side?011:56, 17 November 2014
Database error201:18, 21 May 2014
Lua ?014:31, 2 April 2014
Greater distances?102:02, 19 February 2014
Extra parameters217:59, 31 July 2013
Filing a possible bug?013:50, 11 February 2012

Filter results server-side?

Hi, I'm using the "geosearch" end-point to find cities at certain coordinates. However due to the limit on the number of search results it happens quite often that no cities are returned in favour of landmarks and other results. It would be great if at least filtering for one/many types of coordinates could be done on the server instead of sending lots of data around.

So, are there already plans for this and would you consider patches for this functionality?

NyirNyir (talk)11:56, 17 November 2014

Database error

Hi, when I save a page, I get this error:

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: (SQL query hidden) from within function "GeoDataHooks::doSmartUpdate". Database returned error "1054: Unknown column 'gt_lat_int' in 'field list'

Any fix for this?

37.77.117.14603:04, 15 May 2014

Did you really run the update script after installing? Any errors when you did?

rotsee (talk)11:54, 19 May 2014

Yes, I run the update script without any error... seems not to create gt_spatial index. I found a solution to the bug here Bug 62127, but it is not explained how to set up the tables...

37.77.117.14601:18, 21 May 2014
 
 

Is there any way to use this extension through Lua other than "frame:callParserFunction" and co ?

Zolo (talk)14:31, 2 April 2014

Greater distances?

Any chance of increasing the maximum search radius? 10km isn't much use in places like Scotland because there just isn't the density of population/articles. I'd happily trade half the maximum number of articles in return for the search radius going up to 30km or even 50km.

Le Deluge (talk)14:29, 18 February 2014

You can customize the maximum search radius in your own wiki with

$wgMaxGeoSearchRadius = 30000;

But if you want that to be changed across all Wikimedia projects, then you should file a bug in Bugzilla.

Ricordisamoa02:02, 19 February 2014
 

Extra parameters

What is to do if a name contains spaces or underscores?

RolandUnger (talk)08:04, 28 June 2013

I have the same question as Roland. What if the name has spaces or underscores?

Jnatividad (talk)21:36, 30 July 2013

Max, the author of the extension, set me right after I submitted an ugly urlencode hack :)

To use spaces and underscores for name, do something like this:

 {{#coordinates:40.7820|-73.9660|type:landmark_region:US|name=Central Park Boathouse}}
Jnatividad (talk)17:59, 31 July 2013
 
 

Filing a possible bug?

Where would you like bugs to be mentioned at this early stage? I notice, for example, that distance is greater than radius for some entries here. (While that might be intentional, it seems counter-intuitive at the very least.) Thanks, Jarry1250 13:50, 11 February 2012 (UTC)

Jarry125013:50, 11 February 2012