Skip to content
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

Geo Search #189

Closed
GoogleCodeExporter opened this issue Apr 4, 2015 · 41 comments
Closed

Geo Search #189

GoogleCodeExporter opened this issue Apr 4, 2015 · 41 comments

Comments

@GoogleCodeExporter
Copy link

Search blog content geographically, with results on a map.

Original issue reported on code.google.com by dylankk...@gmail.com on 1 Apr 2009 at 4:13

@GoogleCodeExporter
Copy link
Author

I was just going to ask for this and see so many ways I could use this on my 
map.

Original comment by rrd...@gmail.com on 2 Apr 2009 at 1:39

@GoogleCodeExporter
Copy link
Author

Hi,
i'm very interested on this feature. Is there a plan, when it should be 
implemented?
Thanks

Original comment by creativearchive.jf@googlemail.com on 29 Jul 2009 at 7:20

@GoogleCodeExporter
Copy link
Author

This is another one that will take some time, but I'm optimistic that I'll find 
a
client willing to fund it. Until then, no milestone.

Original comment by dylankk...@gmail.com on 8 Aug 2009 at 1:01

@GoogleCodeExporter
Copy link
Author

This is something I'm dying to be able to do on my site.  The Geo Mashup plugin 
is
amazing by the way; thank you so much!  Unfortunately, I don't have a budget 
for my
site since I'm working on it myself, so I can't offer you any compensation, but 
if
enough people are willing to pool some money together to have you take a crack 
at it,
I would definitely be willing to contribute what I can.

Thanks again Dylan!!

Original comment by kraybi...@gmail.com on 2 Sep 2009 at 12:52

@GoogleCodeExporter
Copy link
Author

Good to know - thank you. Maybe you can help me lowball a bid for a client 
willing to
fund most of it. I'll pipe up here if I see any such opportunities.

Original comment by dylankk...@gmail.com on 2 Sep 2009 at 1:26

@GoogleCodeExporter
Copy link
Author

Thinking about this I realized that you can already get the results of a regular
WordPress search on a map by putting a contextual map in your search results 
template. 

The obvious need there is a way to correlate to each match with the map - kind 
of a
general need with contextual maps. My instinct is to use some variation of the 
Google
A - G markers, with hooks to customize them, and a template tag to insert the
corresponding marker in the post listing.

Original comment by dylankk...@gmail.com on 8 Sep 2009 at 1:19

@GoogleCodeExporter
Copy link
Author

Sounds really helpful, and a great use for this plugin..

Original comment by whatmi...@gmail.com on 5 Jan 2010 at 5:02

@GoogleCodeExporter
Copy link
Author

This issue was updated by revision r610.

This revision adds the ability to query object locations within a distance of a 
query point - a good step towards Geo Search.

Original comment by dylankk...@gmail.com on 21 Jan 2010 at 11:01

@GoogleCodeExporter
Copy link
Author

Great job Dylan I am impressed with your fortitude on this functionality.

Original comment by rrd...@gmail.com on 21 Jan 2010 at 11:17

@GoogleCodeExporter
Copy link
Author

How do we run this query to get a certain amount of objects from a certain 
point?  

Original comment by whatmi...@gmail.com on 4 Mar 2010 at 5:41

@GoogleCodeExporter
Copy link
Author

@whatmiami: I didn't add any documentation, did I? The key new parameters are
radius_mi (or radius_km), near_lat, and near_lng:

[geo_mashup_map map_content="global" radius_mi="5" near_lat="40" 
near_lng="-105"]

That should get you a map near a point. In PHP, you could pass the same 
parameters to
get_object_locations
(http://code.cyberhobo.net/phpdoc/geo-mashup-1.3/GeoMashup/GeoMashupDB.html#meth
odget_object_locations).

Original comment by dylankk...@gmail.com on 4 Mar 2010 at 5:57

@GoogleCodeExporter
Copy link
Author

I have a semi-working solution which is a plugin for wordpress. See 
www.offbeatattractions.co.uk/search 

currently, this is working using another geo plugin (wpgeo) but can easily be 
changed to use geo-mashup. And in fact, does need to be changed as it's using 
the wrong fields.

I will change my code to use this plugin and will try to tidy up the code so 
it's more user friendly... will post again here soon.

Original comment by mattfa...@gmail.com on 5 Aug 2010 at 2:56

@GoogleCodeExporter
Copy link
Author

@mattfacer: Looks really promising! I'll be out for a couple of weeks, so if I 
don't respond it's not due to lack of interest.

Original comment by dylankk...@gmail.com on 6 Aug 2010 at 2:56

@GoogleCodeExporter
Copy link
Author

@mattfacer - I'm keen to see the code you've got for that plugin, please keep 
us updated!

Original comment by Nick.Eve...@gmail.com on 10 Sep 2010 at 2:29

@GoogleCodeExporter
Copy link
Author

@mattfacer +1 would love to see code examples. Ajax radial search with client 
geolocation sounds awesome. Making the advanced radius search a min and max 
slider would be very slick.

Great work.
Ben

Original comment by bco...@gmail.com on 10 Sep 2010 at 11:14

@GoogleCodeExporter
Copy link
Author

i really need that feature.

Original comment by ithth...@gmail.com on 23 Sep 2010 at 8:30

@GoogleCodeExporter
Copy link
Author

I am also interested. How much and how long you need to implement this feature?

Original comment by mamoun.d...@gmail.com on 17 Oct 2010 at 10:55

@GoogleCodeExporter
Copy link
Author

Please contact me directly for an estimate to implement the features you want 
for your site, and I'll see how I can apply that to generic Geo Mashup 
features. It would be great to get something into 1.4.

Original comment by dylankk...@gmail.com on 17 Oct 2010 at 12:01

@GoogleCodeExporter
Copy link
Author

[deleted comment]

3 similar comments
@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

So can we expect the search map functionality to be in v1.4?

Original comment by mamoun.d...@gmail.com on 11 Nov 2010 at 11:54

@GoogleCodeExporter
Copy link
Author

I'll add a milestone label to this issue when I target a release. I'm not sure 
yet about 1.4.

Original comment by dylankk...@gmail.com on 12 Nov 2010 at 2:13

@GoogleCodeExporter
Copy link
Author

@ mamoun.d...@gmail.com

I'd potentially be interested in part sponsoring Dylan to develop an AJAX 
location distance based search plugin.

If there is anyone else interested in chipping in let me know.

Original comment by bco...@gmail.com on 8 Feb 2011 at 2:42

@GoogleCodeExporter
Copy link
Author

Yeah, I'd chip in. 

Original comment by Nick.Eve...@gmail.com on 8 Feb 2011 at 10:20

@GoogleCodeExporter
Copy link
Author

I'm also willing to pay a small donation (<50 euro's) for this feature.

I used SimpleMap on one of my pages but it isn't developed anymore. Simplemap 
offered a simple search-function which works out of the box.

Original comment by mark.app...@gmail.com on 21 Mar 2011 at 3:16

@GoogleCodeExporter
Copy link
Author

I am also very interested in this feature and would be willing to chip in with 
a donation!

Original comment by mi...@termite.org on 1 Apr 2011 at 1:48

@GoogleCodeExporter
Copy link
Author

I'm finally getting a couple of jobs to help me focus on this. This just went 
live:

http://www.natlands.org/geosearch

The struggle for me always how to generalize something like that. The simplest 
thing I can think of is a single template that includes the search form and 
results, and can be placed on a page with a shortcode. I'd make a default 
template that could be overridden by the theme. The problem with that is that 
most sites will probably want a widget for just the search form, in which case 
a page would have to be identified for the result listing. I considered taking 
over the WordPress search form and results template, but I think it needs to be 
an option to have both working.

I have another job that will enable me to work on some of these issues, so give 
me your ideas now! So far I'm focussing on standard POST searches, not AJAX. 

Original comment by dylankk...@gmail.com on 6 Apr 2011 at 1:59

@GoogleCodeExporter
Copy link
Author

PS to the comment above - the example site works for city searches, even though 
it prompts for ZIP. I'd probably prompt for city/ZIP by default. There's also 
the possibility of prompting the user for their current location, maybe an 
optional feature.

Original comment by dylankk...@gmail.com on 6 Apr 2011 at 2:03

@GoogleCodeExporter
Copy link
Author

Exciting! The site above is really close to what we are working to implement on 
the http://www.termite.org/walkphilly site. What we are looking for is using 
location services to display the user's location in relation to the geomashup 
posts.

Original comment by mi...@termite.org on 8 Apr 2011 at 2:12

@GoogleCodeExporter
Copy link
Author

Ok - attached is a plugin that adds a geo search widget. Feel free to try it 
and give feedback here.

  * There is a template for rendering the search form (see search-form-default.php)
  * Results include distance in miles or kilometers
  * You have to specify a page for results. The page is rendered with the usual template, then search results are listed with using another template (see search-results-default.php)
  * The search is not done using query_posts() or with WP_Query. This means contextual maps and normal WP templates won't work with search results.

The obvious next feature to add is a map of results. The client who has 
sponsored this work so far may spring for that too, but if you're interested in 
contributing click my project member link (above) and contact me directly. 
Cheers!

Original comment by dylankk...@gmail.com on 3 May 2011 at 1:21

Attachments:

@GoogleCodeExporter
Copy link
Author

One more thing - if you want to hack on the geo mashup search plugin yourself 
here it is on github:

https://github.com/cyberhobo/wp-geo-mashup-search

Original comment by dylankk...@gmail.com on 3 May 2011 at 1:49

@GoogleCodeExporter
Copy link
Author

This is great. Thanks so much for this update, Just one question tho, how did 
you get the map on the right hand side of your example 
("http://www.natlands.org/geosearch") to update after you have searched?

I've tried using various shortcodes / template tags with no joy.

Thanks.

Original comment by blow...@googlemail.com on 28 Jun 2011 at 10:02

@GoogleCodeExporter
Copy link
Author

natlands.org doesn't actually use the plugin, though it helped with development 
of it. It might be possible to rig some kind of external template code now, but 
it would be much easier if I added a method to the GeoMashupSearch class for it.

Original comment by dylankk...@gmail.com on 28 Jun 2011 at 2:12

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

By default, the search-results-default.php has the following.

 * Variables in scope:
 * $geo_mashup_search  object   The managing search object
 * $search_text        string   The search text entered in the form
 * $radius             int      The search radius
 * $units              string   'mi' or 'km'

How would I go about getting the Lat / Long for the search so that i could 
render a  results map based on the search?

Here is the page im testing on.

http://touch-stone.net/kart/?page_id=2078

Original comment by blow...@googlemail.com on 18 Nov 2011 at 10:32

@GoogleCodeExporter
Copy link
Author

@blowsie: The default results template has the code to render a Geo Mashup map 
of results - I guess you don't want that. You can get  a location in the loop 
like this:

<?php $location = GeoMashupDB::get_object_location( 'post', get_the_ID() ); ?>

Original comment by dylankk...@gmail.com on 18 Nov 2011 at 2:32

@GoogleCodeExporter
Copy link
Author

@dylan indeed it does, thank you. I had the initial version which did not have 
the map.
Excellent work, thanks.

Original comment by blow...@googlemail.com on 22 Nov 2011 at 9:24

@GoogleCodeExporter
Copy link
Author

This issue was updated by revision r1105.

A separate plugin will not be required with Geo Mashup 1.5. 
I'm hoping for a beta release this summer - timing will depend on whether 
issue 381 is included.

Original comment by dylankk...@gmail.com on 11 Jun 2012 at 11:52

  • Changed state: Implemented
  • Added labels: Milestone-1.5

@GoogleCodeExporter
Copy link
Author

Original comment by dylankk...@gmail.com on 12 Apr 2013 at 5:12

  • Changed state: Released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant