×

Discussion Board

Results 1 to 7 of 7

Hybrid View

  1. #1
    Registered User
    Join Date
    Jun 2012
    Posts
    4

    API to get the list of categories

    To get the list of categories, we are calling explore API settingthe X-Map-Viewport in the header. We observed that the category list returned in the response lets say for California and Germany returned different values. We would like yo know if there is any API get the list of all categories (Master list).

  2. #2
    Nokia Developer Expert
    Join Date
    Apr 2012
    Location
    Berlin, Germany
    Posts
    42

    Re: API to get the list of categories

    Hi,

    What we return in /discover/explore is actually not a list of categories, but refined search queries that allow access to clusters of the places in that area. These refined search queries currently are identical to the categories but this will change in the future and you might get e.g., events. You can find more about this in our documentation: http://api.maps.nokia.com/en/restpla...ef_type_search

    When it comes to categories, these are used in two places: as attribute of a place and as a category filter in the /discover/explore response. There is no complete master list of all categories since some categories might not be applicable world-wide. Also, categories might be added or removed at any time, thus, your application should not rely on hard-coded categories.

    There is one exception to this: there is a fixed set of categories that will not be removed. These are listed in our documentation: http://api.maps.nokia.com/en/restpla...l#__Categories

    We intend to provide an API endpoint to query the current category graph (categories and their parent categories) programmatically.

    daniel.
    Daniel Moor
    Nokia Places API

  3. #3
    Regular Contributor
    Join Date
    Nov 2008
    Posts
    138

    Re: API to get the list of categories

    I must get list of sub categories. We are doing a game where we must know available sub categories. Google API has around 90 categories. That is good set of categories to our game. Nokia has only around 10 categories. By having all sub categories listed it enables more variations to our game. After that we can move from Google API to Nokia API. Why don't you just provide API that returns list of sub categories? List can change, because get always up to date sub category list by calling some API.

  4. #4
    Nokia Developer Expert
    Join Date
    Apr 2012
    Location
    Berlin, Germany
    Posts
    42

    Re: API to get the list of categories

    Hi,

    We plan to provide a query for the whole category graph at a given location (some categories might be available in certain regions only).

    daniel.
    Daniel Moor
    Nokia Places API

  5. #5
    Registered User
    Join Date
    Jun 2012
    Posts
    4

    Re: API to get the list of categories

    Can you provide us the current master list of categories available for all regions?

  6. #6
    Nokia Developer Expert
    Join Date
    Apr 2012
    Location
    Berlin, Germany
    Posts
    42

    Re: API to get the list of categories

    Hi,

    I’m not sure if I understand what you mean:

    There is the list of categories we will to support indefinitely and in all regions: http://api.maps.nokia.com/en/restpla...l#__Categories

    Sub categories thereof will not be supported everywhere and indefinitely. For those you need to wait for the above mentioned category endpoint.

    daniel.
    Daniel Moor
    Nokia Places API

  7. #7
    Nokia Developer Expert
    Join Date
    May 2012
    Posts
    1

    Re: API to get the list of categories

    Hi,

    not sure if you've noticed: We've added the opportunity to fetch the full (directed, acyclic) graph of categories known to the Places API.

    http://demo.places.nlp.nokia.com/pla...PhQwqaydGIW4yg

    As mentioned before, from Places API point of view categories are no static concept and the graph might change at any time.

    Our current implementation uses a single "global" category graph (in fact, the current graph is just a tree). We might introduce more specific categories in the future, and some of them might not be applicable for every region on earth. So depending on the use case for which you need access to the categories, you might only be interested in those categories relevant at a specific location. Then can simply add the "at" parameter to the category request:

    http://demo.places.nlp.nokia.com/pla...51%2C-122.4047

    Please be aware, that this result does not necessarily mean that you will find Places in these categories at this location. It only says that this is a category known in this region of the world.

    Let us know if this feature meets your needs.

    Andreas
    Nokia Places API

Similar Threads

  1. App Categories
    By tjoozey in forum [Closed] Publishing to Nokia Store
    Replies: 1
    Last Post: 2009-10-25, 17:24
  2. New Screen and the sub-categories
    By chaishekar in forum Mobile Java General
    Replies: 1
    Last Post: 2008-07-24, 06:27
  3. PIM and Categories
    By madRat in forum Mobile Java General
    Replies: 0
    Last Post: 2008-01-14, 08:02

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •