Discussion:
Findnearroute with NavTec.NA
(too old to reply)
momo
2008-03-15 01:29:24 UTC
Permalink
Code snippet (we already have a valid route returned=E2=80=A6also if we use the Coff=
eeSample example we get results)
FindNearRouteSpecification findnearroutespec =3D =

new FindNearRouteSpecification();
findnearroutespec.setDataSourceName("NavTech.NA");
findnearroutespec.setFilter(new FindFilter());
findnearroutespec.getFilter().setEntityTypeName("SICInd554");
findnearroutespec.setDistance(20);
findnearroutespec.setRoute(route);

findResults =3D findService.findNearRoute(findnearroutespec);



The start of the request:
sd=3D"http://www.w3.org/2001/XMLSchema" xmlnssi=3D"http://www.w3.org/200=
1/XMLSchema-instance">NavTech.NA




Error message:
{http://s.mappoint.net/mappoint-30/}Type:MapPointArgumentException
{http://s.mappoint.net/mappoint-30/}Message:The requested data source does n=
ot support the Find Near Route method. Argument: specification.DataSourceName
{http://s.mappoint.net/mappoint-30/}Argument:specification.DataSourceNa=
me


On Microsft's web site it says this about FindNearRoute:

DataSourceCapability Enumeration displays this information regarding whether o=
r not FindNearRoute is usable with the NavTech.NA data source:
CanFindNearby Indicates whether whether you can use the FindServiceSoap.FindByI=
D, FindServiceSoap.FindByProperty, FindServiceSoap.FindNearby, and FindServ=
iceSoap.FindNearRoute methods with the specified DataSource object. You can use t=
he FindByID, FindByProperty, and FindNearRoute methods only with your private poi=
nt-of-interest data sources and the MapPoint.FourthCoffeeSample data source.

I managed to get information back from the FourthCoffeeSample just fine so I have a co=
uple of questions:
1) Do I need to subscribe to NavTech.NA data source to be able to use it? =


2) if not do you see any flaws in the way I am accessing the service

url:http://www.ureader.com/gp/1621-1.aspx
Derek Chan
2008-03-17 17:54:01 UTC
Permalink
1) You don't need to subscribe to the NavTech.NA datasource to access it, you
just need to have a Developer (trial) or production account in order to
access it.

2) Your code looks correct. As usual, you can refer to here for a complete
list of entitytypes in the NavTech.NA datasource:

http://msdn2.microsoft.com/en-us/library/ms868169.aspx

Hope that helps,
--
Infusion Development
http://www.infusion.com
Code snippet (we already have a valid route returned…also if we use the CoffeeSample example we get results)
FindNearRouteSpecification findnearroutespec =
new FindNearRouteSpecification();
findnearroutespec.setDataSourceName("NavTech.NA");
findnearroutespec.setFilter(new FindFilter());
findnearroutespec.getFilter().setEntityTypeName("SICInd554");
findnearroutespec.setDistance(20);
findnearroutespec.setRoute(route);
findResults = findService.findNearRoute(findnearroutespec);
sd="http://www.w3.org/2001/XMLSchema" xmlnssi="http://www.w3.org/2001/XMLSchema-instance">NavTech.NA
{http://s.mappoint.net/mappoint-30/}Type:MapPointArgumentException
{http://s.mappoint.net/mappoint-30/}Message:The requested data source does not support the Find Near Route method. Argument: specification.DataSourceName
{http://s.mappoint.net/mappoint-30/}Argument:specification.DataSourceName
CanFindNearby Indicates whether whether you can use the FindServiceSoap.FindByID, FindServiceSoap.FindByProperty, FindServiceSoap.FindNearby, and FindServiceSoap.FindNearRoute methods with the specified DataSource object. You can use the FindByID, FindByProperty, and FindNearRoute methods only with your private point-of-interest data sources and the MapPoint.FourthCoffeeSample data source.
1) Do I need to subscribe to NavTech.NA data source to be able to use it?
2) if not do you see any flaws in the way I am accessing the service
url:http://www.ureader.com/gp/1621-1.aspx
momo
2008-03-23 18:01:28 UTC
Permalink
I tried but I always the error message.
Thanks for your help

url:http://www.ureader.com/msg/16211033.aspx

Loading...