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

Import OSM tags (for scoring purposes) #33

Closed
hkrishna opened this issue Feb 24, 2015 · 2 comments
Closed

Import OSM tags (for scoring purposes) #33

hkrishna opened this issue Feb 24, 2015 · 2 comments
Assignees

Comments

@hkrishna
Copy link
Contributor

Each point we import belongs to one of these features. It would be nice if we used all the tags that each of these osm nodes contain and add it to the pelias model document.

Obviously we need to change the schema to add a field called tags thats a hash or an array of all tags.

We could have another file weighted_tags.yml in a different repo where we can define what weight each tag value corresponds to.

   airport: 10
   railway: 10
   restaurant: 5
   tourism: 15
   ...
@dianashk
Copy link
Contributor

This could be applied to scoring POIs, but it's also potentially useful as the category field we've talked about previously. Or tags and categories are the same thing and can serve both purposes without duplicating the data? Categories could grow beyond this list, like gas stations/bars/etc., but that doesn't mean we can't combine them all into one schema field.

@hkrishna
Copy link
Contributor Author

Yeah, thats right. With one schema field we are eliminating the possibility of having multiple fields being null all the time and having to re-index each time we decide to add a new tag to our index.

We can use these tags (or categories - however you see it) in our queries and can do clever things like

  • find all airports in a bbox
  • search all bars and restaurants
  • sort results based on what category they belong to (for instance, restaurants gets a higher weight than an office?) or what tag they have (for example: 'empire state' will yield 'empire state building' because it has a tag tourism:yes and thus gets rated higher)

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

No branches or pull requests

3 participants