0

GeoPlanet woeid navigational interface

Hello,
None of this has started development yet, but this is how I want things to work.

I'm working on something where entities are assigned to a woeid in our database by the end user so that they can be mapped and easily searched for.

The user would first want to select the continent, then the country, then the region, then a town and save their entity to this woeid.

It is important to have this "breadcrumb" so that when another end user wants to search for an entity they can do so by navigating through each woeid selecting each child as they go along.

However, I have hit a developmental hurdle. Saving an entity would be quite simple to a woeid and I could easily replicate the navigation through numerous descendant woeid's.
But how would I be able to scale this for searching? There is no way that I could send a YQL query every time that someone is searching through each woeid.

ie.
They click a continent, to list all countries in that continent.
Then then click a country in that continent
Then they click a region in that continent

Is this not how I should be looking to use GeoPlanet?
I only want to be able to search over woeid's that have an entity which belongsto it. So I was thinking of somehow relying on something else?

Any suggestions and I hope this is a topic suitable for this forum.
Thanks.

by
1 Reply
  • QUOTE (cj.atkinson88 @ Jan 14 2011, 08:50 AM) <{POST_SNAPBACK}>
    Hello,
    None of this has started development yet, but this is how I want things to work.

    I'm working on something where entities are assigned to a woeid in our database by the end user so that they can be mapped and easily searched for.

    The user would first want to select the continent, then the country, then the region, then a town and save their entity to this woeid.

    It is important to have this "breadcrumb" so that when another end user wants to search for an entity they can do so by navigating through each woeid selecting each child as they go along.

    However, I have hit a developmental hurdle. Saving an entity would be quite simple to a woeid and I could easily replicate the navigation through numerous descendant woeid's.
    But how would I be able to scale this for searching? There is no way that I could send a YQL query every time that someone is searching through each woeid.

    ie.
    They click a continent, to list all countries in that continent.
    Then then click a country in that continent
    Then they click a region in that continent

    Is this not how I should be looking to use GeoPlanet?
    I only want to be able to search over woeid's that have an entity which belongsto it. So I was thinking of somehow relying on something else?

    Any suggestions and I hope this is a topic suitable for this forum.
    Thanks.


    Normally, it would not be an issue to fetch children of a place as the user drills down the place hierarchy. This can even be done within the browser to avoid additional requests to your web server. What becomes an issue is hiding places without associated content. To do this would require a way to compare a list of places to your content. One way to do this is to populate a table of WOEIDs whenever you add content. Populate this table with WOEIDs that are in the ancestor list of the smallest place that is associated with your content. You can then test the WOEID of each place returned by GeoPlanet against this table to determine if the place should be hidden or displayed. If your content can be removed as well as added, you may need to adjust your table of WOEIDs if the last associated content is removed for a place.

    There may be other solutions to this problem... Perhaps another reader can suggest one.

    Eddie Babcock
    Yahoo! Geo Technologies
    0
This forum is locked.

Recent Posts

in GeoPlanet General Discussion