none
POI Search oddities RRS feed

  • Question

  • So I'm trying to build an app that lets you analyze the different types of POIs around you. I've noticed some strange things in dealing with the NAVTEQNA database.

    First off, is there a limit to the number of POIs entity types you can put into a single request? I was putting in 60, but it seems to be stopping around 20 or so.

    Second, along the lines of this post, is there any way to know which entities are valid for the US and which ones are valid for the EU? I manage this NuGet package, and I'd like to be able to build EntityType checking for the specific databases.

    That's it for now, I'm sure I will have more follow-up questions. Thanks!

    Wednesday, March 26, 2014 2:38 AM

Answers

  • Not aware on a limit to the number of entity types in a request, however there is a limit to how long a URL can be in general (2083 characters). This limit is built into browsers and most servers. It's possible your URL is too long and is being cut off.

    I've actually just created such a list. Recently I noticed that there were a number of entity types that don't exist in either data source. I've gone through every entity type and created a list of which one's are in the NA and EU data sources and which one's are not in either. The list of entity types came from the data provider and it seems they just gave us a generic list of entity types rather than a list of the entity types in the data they provide us.

    Also, since you are working with both data sources you might find it handy that you can easily determine which data source to use based on the longitude value of a users request. The Atlantic ocean is a good divider of the data. I usually o something like this in my code samples:

    //Switch between the NAVTEQ POI data sets for NA and EU based on where the user is. 
    if (LastSearchLocation.Longitude < -30) 
    { 
    	//Use the NAVTEQ NA data source: http://msdn.microsoft.com/en-us/library/hh478192.aspx 
    	baseURL = "http://spatial.virtualearth.net/REST/v1/data/f22876ec257b474b82fe2ffcb8393150/NavteqNA/NavteqPOIs"; 
    } 
    else 
    { 
    	//Use the NAVTEQ EU data source: http://msdn.microsoft.com/en-us/library/hh478193.aspx 
    	baseURL = "http://spatial.virtualearth.net/REST/v1/data/c2ae584bbccc4916a0acf75d1e6947b4/NavteqEU/NavteqPOIs"; 
    } 

    We plan on updating the documentation accordingly. Until then here is the lists:

    NAVTEQNA

    Category   ID Description
    2084 Winery
    3578 ATM
    4013 Train Station
    4100 Commuter Rail Station
    4170 Bus Station
    4444 Named Place
    4482 Ferry Terminal
    4493 Marina
    4581 Airport
    5000 Business Facility
    5400 Grocery Store
    5511 Automobile Dealership
    5540 Petrol/Gasoline Station
    5571 Motorcycle Dealership
    5800 Restaurant
    5999 Historical Monument
    6000 Bank
    6512 Shopping
    7011 Hotel
    7012 Ski Resort
    7389 Tourist Information
    7510 Rental Car Agency
    7520 Parking Lot
    7521 Parking Garage/House
    7522 Park & Ride
    7538 Auto Service & Maintenance
    7832 Cinema
    7897 Rest Area
    7929 Performing Arts
    7940 Sports Complex
    7947 Park/Recreation Area
    7985 Casino
    7990 Convention/Exhibition Centre
    7992 Golf Course
    7994 Civic/Community Centre
    7996 Amusement Park
    7999 Tourist Attraction
    8060 Hospital
    8200 Higher Education
    8211 School
    8231 Library
    8410 Museum
    8699 Automobile Club
    9121 City Hall
    9211 Court House
    9221 Police Station
    9517 Campground
    9522 Truck Stop/Plaza
    9530 Post Office
    9535 Convenience Store
    9537 Clothing Store
    9545 Department Store
    9560 Home Specialty Store
    9565 Pharmacy
    9567 Specialty Store
    9568 Sporting Goods Store
    9592 Highway Exit
    9593 Transportation Service
    9710 Weigh Station
    9714 Cargo Centre
    9715 Military Base
    9718 Animal Park
    9986 Home Improvement and
    9987 Consumer Electronics Store
    9988 Office Supply & Services
    9995 Book Store
    9996 Coffee Shop
    9998 Hamlet
    9999 Border Crossing

    NAVTEQEU

    3578 ATM
    4444 Named Place
    4482 Ferry Terminal
    4581 Airport
    5511 Automobile Dealership
    5540 Petrol/Gasoline Station
    6000 Bank
    7011 Hotel
    7538 Auto Service & Maintenance
    7997 Sports Centre
    8200 Higher Education
    9221 Police Station
    9719 Truck Dealership
    9999 Border Crossing
    5000 Business Facility
    5571 Motorcycle Dealership
    5800 Restaurant
    5813 Nightlife
    5999 Historical Monument
    6512 Shopping
    7012 Ski Resort
    7014 Ski Lift
    7389 Tourist Information
    7510 Rental Car Agency
    7520 Parking Lot
    7521 Parking Garage/House
    7992 Golf Course
    7994 Civic/Community Centre
    7998 Ice Skating Rink
    7999 Tourist Attraction
    8060 Hospital
    8410 Museum
    9121 City Hall
    9517 Campground
    9537 Clothing Store
    9591 Cemetery
    9992 Place of Worship
    9993 Embassy
    9998 Hamlet
    2084 Winery
    4013 Train Station
    4100 Commuter Rail Station
    4170 Bus Station
    4493 Marina
    4580 Public Sports Airport
    5400 Grocery Store
    7013 Other Accommodation
    7522 Park & Ride
    7832 Cinema
    7897 Rest Area
    7929 Performing Arts
    7933 Bowling Centre
    7940 Sports Complex
    7947 Park/Recreation Area
    7985 Casino
    7990 Convention/Exhibition Centre
    7996 Amusement Park
    8211 School
    8231 Library
    9211 Court House
    9530 Post Office
    9535 Convenience Store
    9545 Department Store
    9560 Home Specialty Store
    9565 Pharmacy
    9567 Specialty Store
    9568 Sporting Goods Store
    9583 Medical Service
    9986 Home Improvement and
    9987 Consumer Electronics Store
    9988 Office Supply & Services
    9991 Industrial Zone
    9995 Book Store
    9996 Coffee Shop
    9525 Government Office
    9994 County Council
    9590 Residential Area/Building
    5512 Auto Dealership Used Cars


    http://rbrundritt.wordpress.com

    Wednesday, March 26, 2014 10:47 AM

All replies

  • Not aware on a limit to the number of entity types in a request, however there is a limit to how long a URL can be in general (2083 characters). This limit is built into browsers and most servers. It's possible your URL is too long and is being cut off.

    I've actually just created such a list. Recently I noticed that there were a number of entity types that don't exist in either data source. I've gone through every entity type and created a list of which one's are in the NA and EU data sources and which one's are not in either. The list of entity types came from the data provider and it seems they just gave us a generic list of entity types rather than a list of the entity types in the data they provide us.

    Also, since you are working with both data sources you might find it handy that you can easily determine which data source to use based on the longitude value of a users request. The Atlantic ocean is a good divider of the data. I usually o something like this in my code samples:

    //Switch between the NAVTEQ POI data sets for NA and EU based on where the user is. 
    if (LastSearchLocation.Longitude < -30) 
    { 
    	//Use the NAVTEQ NA data source: http://msdn.microsoft.com/en-us/library/hh478192.aspx 
    	baseURL = "http://spatial.virtualearth.net/REST/v1/data/f22876ec257b474b82fe2ffcb8393150/NavteqNA/NavteqPOIs"; 
    } 
    else 
    { 
    	//Use the NAVTEQ EU data source: http://msdn.microsoft.com/en-us/library/hh478193.aspx 
    	baseURL = "http://spatial.virtualearth.net/REST/v1/data/c2ae584bbccc4916a0acf75d1e6947b4/NavteqEU/NavteqPOIs"; 
    } 

    We plan on updating the documentation accordingly. Until then here is the lists:

    NAVTEQNA

    Category   ID Description
    2084 Winery
    3578 ATM
    4013 Train Station
    4100 Commuter Rail Station
    4170 Bus Station
    4444 Named Place
    4482 Ferry Terminal
    4493 Marina
    4581 Airport
    5000 Business Facility
    5400 Grocery Store
    5511 Automobile Dealership
    5540 Petrol/Gasoline Station
    5571 Motorcycle Dealership
    5800 Restaurant
    5999 Historical Monument
    6000 Bank
    6512 Shopping
    7011 Hotel
    7012 Ski Resort
    7389 Tourist Information
    7510 Rental Car Agency
    7520 Parking Lot
    7521 Parking Garage/House
    7522 Park & Ride
    7538 Auto Service & Maintenance
    7832 Cinema
    7897 Rest Area
    7929 Performing Arts
    7940 Sports Complex
    7947 Park/Recreation Area
    7985 Casino
    7990 Convention/Exhibition Centre
    7992 Golf Course
    7994 Civic/Community Centre
    7996 Amusement Park
    7999 Tourist Attraction
    8060 Hospital
    8200 Higher Education
    8211 School
    8231 Library
    8410 Museum
    8699 Automobile Club
    9121 City Hall
    9211 Court House
    9221 Police Station
    9517 Campground
    9522 Truck Stop/Plaza
    9530 Post Office
    9535 Convenience Store
    9537 Clothing Store
    9545 Department Store
    9560 Home Specialty Store
    9565 Pharmacy
    9567 Specialty Store
    9568 Sporting Goods Store
    9592 Highway Exit
    9593 Transportation Service
    9710 Weigh Station
    9714 Cargo Centre
    9715 Military Base
    9718 Animal Park
    9986 Home Improvement and
    9987 Consumer Electronics Store
    9988 Office Supply & Services
    9995 Book Store
    9996 Coffee Shop
    9998 Hamlet
    9999 Border Crossing

    NAVTEQEU

    3578 ATM
    4444 Named Place
    4482 Ferry Terminal
    4581 Airport
    5511 Automobile Dealership
    5540 Petrol/Gasoline Station
    6000 Bank
    7011 Hotel
    7538 Auto Service & Maintenance
    7997 Sports Centre
    8200 Higher Education
    9221 Police Station
    9719 Truck Dealership
    9999 Border Crossing
    5000 Business Facility
    5571 Motorcycle Dealership
    5800 Restaurant
    5813 Nightlife
    5999 Historical Monument
    6512 Shopping
    7012 Ski Resort
    7014 Ski Lift
    7389 Tourist Information
    7510 Rental Car Agency
    7520 Parking Lot
    7521 Parking Garage/House
    7992 Golf Course
    7994 Civic/Community Centre
    7998 Ice Skating Rink
    7999 Tourist Attraction
    8060 Hospital
    8410 Museum
    9121 City Hall
    9517 Campground
    9537 Clothing Store
    9591 Cemetery
    9992 Place of Worship
    9993 Embassy
    9998 Hamlet
    2084 Winery
    4013 Train Station
    4100 Commuter Rail Station
    4170 Bus Station
    4493 Marina
    4580 Public Sports Airport
    5400 Grocery Store
    7013 Other Accommodation
    7522 Park & Ride
    7832 Cinema
    7897 Rest Area
    7929 Performing Arts
    7933 Bowling Centre
    7940 Sports Complex
    7947 Park/Recreation Area
    7985 Casino
    7990 Convention/Exhibition Centre
    7996 Amusement Park
    8211 School
    8231 Library
    9211 Court House
    9530 Post Office
    9535 Convenience Store
    9545 Department Store
    9560 Home Specialty Store
    9565 Pharmacy
    9567 Specialty Store
    9568 Sporting Goods Store
    9583 Medical Service
    9986 Home Improvement and
    9987 Consumer Electronics Store
    9988 Office Supply & Services
    9991 Industrial Zone
    9995 Book Store
    9996 Coffee Shop
    9525 Government Office
    9994 County Council
    9590 Residential Area/Building
    5512 Auto Dealership Used Cars


    http://rbrundritt.wordpress.com

    Wednesday, March 26, 2014 10:47 AM
  • Thanks for putting this together, Ricky. I have to say that I am quite shocked by that list... it is no wonder that my items were not returning. Based on two comparisons, I put together: NA vs EU, and NA vs Documented List, there are a crap-ton of entity types currently missing.

    Is there *any* chance that Microsoft could get those missing entities added to the system? I built a huge plug-in to my company's product, based information that is supposed to be returned by that list. Now that at least 50% of the items I was expecting are not in the database, I'm going to have to look at other options if they can't get it in there.

    You have no idea how professionally disappointing it would be if, as a BizSpark member, I'd have to rely on Google for this data instead of Bing.

    Thanks again for your help :)

    Saturday, March 29, 2014 8:35 PM
  • As I mentioned in my post the list was provided to us by our data provider. It ends up this is a list of all the possible entity types they may use, however it looks like about half of them were never used by them. It's worth nothing that about half of them are also duplicated in the list by similarly named entity types. Our documentation team is aware of this issue and working on updating the documentation accordingly. It's also worth noting that these data sources only contain NAVTEQ POI data, Bing Maps provides point of interest data in two other ways which also have a lot more data. One is with the Bing Maps SOAP Search Service and the other is via the Search module in the Bing Maps V7 JavaScript control. These methods contain the NAVTEQ POI plus additional data sets from other data providers. The main reason for separating out the NAVTEQ data sources into their own data sources is that some of our other data providers put restrictions on where the service can be used, as such there are certain countries where the SOAP service will not return any results even though we have POI data from NAVTEQ. The only way to get around this was to create a separate data source. You can find information on these other sources of POI data here:

    http://msdn.microsoft.com/en-us/library/hh868062.aspx

    http://msdn.microsoft.com/en-us/library/dn448599.aspx


    http://rbrundritt.wordpress.com

    Monday, March 31, 2014 9:58 AM