×

Discussion Board

Results 1 to 2 of 2

Hybrid View

  1. #1
    Registered User
    Join Date
    Nov 2013
    Posts
    1

    geocode: get location by location id not always working?

    Hi all!
    I'm trying to get the details of a location using the locationId returned from a search query but it doesn't work, for example, i have this query:

    http://geocoder.cit.api.here.com/6.2...fjrb0KIHawS0Tg

    which returns the following location:

    <Location>
    <LocationId>Area_21002647_PRI</LocationId>
    <LocationType>point</LocationType>
    ...
    </location>

    but, if i try to get the location details using the same locationId get nothing:

    http://geocoder.cit.api.here.com/6.2...IHawS0Tg&gen=3

    <ns2:Search xmlns:ns2="http://www.navteq.com/lbsp/Search-Search/4">
    <Response>
    <MetaInfo>
    <Timestamp>2013-11-05T22:32:23.241Z</Timestamp>
    </MetaInfo>
    </Response>
    </ns2:Search>

    Any ideas?

    Thank you

  2. #2
    Regular Contributor
    Join Date
    Aug 2011
    Location
    Berlin
    Posts
    289

    Re: geocode: get location by location id not always working?

    To obtain geocode results on Windows Phone you should use the GeocodeQuery class. An example on how to do this can be found here

    Questions about the Restful Geocoder API should be sent to StackOverflow - you will get a better response rate there.

    I suspect the reason Area_21002647_PRI doesn't work is that "Chicago" does not resolve to a point address. The API Reference defines locationid as "A key uniquely identifying a physical location." If you use a full address to obtain a locationid and use the locationid thereafter it works as shown: http://geocoder.cit.api.here.com/6.2/geocode.xml?locationid=NT_HoZefYX0bMxoVxCkp1uk2C_1

Similar Threads

  1. Replies: 0
    Last Post: 2011-04-25, 15:32
  2. Location API, is it working on 1.0.2?
    By MatuX in forum [Archived] Qt Mobility Project
    Replies: 3
    Last Post: 2010-08-14, 18:58
  3. Post-install package (javax.microedition.location.Location)
    By null99 in forum Mobile Java General
    Replies: 8
    Last Post: 2010-06-22, 04:54
  4. Location API is not working
    By elaltaico in forum Mobile Java General
    Replies: 5
    Last Post: 2009-07-06, 11:41
  5. java.lang.SecurityException javax.microedition.location.Location
    By snoopyAU in forum Mobile Java General
    Replies: 7
    Last Post: 2008-10-14, 01:42

Posting Permissions

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