×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jun 2012
    Posts
    4

    API to get all the places in X-MAP-VIEWPORT

    We are using the below API to get all the places in Germany by setting X-MAP-VIEWPORT=4.9474,48.1407,13.3629,53.5960

    http://demo.places.nlp.nokia.com/pla...dGIW4yg&pretty

    This API returns only 20 results. I am sure there are more than 20 Points of interest in Germany.

    The API return the 20 results only when i looked for places for Netherlands (west_longitude=4.6686&south_latitude=51.5986&east_longitude=6.8878&north_latitude=53.1676).

    Please can you let us know if we need to make any changes so we can see more than 20 places with the X_MAP-VIEWPORT header

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

    Re: API to get all the places in X-MAP-VIEWPORT

    I was able to get 99 results by setting size=1000 in the request. But from the results I could not make out the total number of items. What is the parameter to be set to get the total number of items for my query. The results was 99 always when i explored other countries for ex: France(-4.1424,42.7402,7.6349,50.2835)
    Last edited by rajusb19; 2012-06-25 at 11:53.

  3. #3
    Nokia Developer Expert
    Join Date
    Jun 2012
    Posts
    2

    Re: API to get all the places in X-MAP-VIEWPORT

    Hi,

    20 is default size. You can change collection response size by providing size query param.
    You can find more in our documentation here: http://api.maps.nokia.com/en/restpla...le_Collections.

    Regards,
    Kirill

  4. #4
    Nokia Developer Expert
    Join Date
    Jun 2012
    Posts
    2

    Re: API to get all the places in X-MAP-VIEWPORT

    Hi,

    Unfortunately we do not provide a total number of places available for your request. You can modify size query param to request response collection size you want, if we will be able to find requested number of places, we will send it back to you. In case in this location we cannot find enough places, response will contains less elements than requested size.

    Regards,
    Kirill

Similar Threads

  1. Nokia Places API FAQ
    By Nokia Ron in forum [Archived] Places API
    Replies: 1
    Last Post: 2013-04-25, 13:06
  2. Nokia Places API for Qt
    By vladest in forum Qt
    Replies: 4
    Last Post: 2012-09-08, 01:34
  3. SVGImage and viewPort: image is not displayed in phon (fine in emulator)
    By thehappycoder in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2009-03-08, 13:45

Posting Permissions

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