Finding objects of a special type for a given region

Deals with generic topics such as logging, framework and so on. If you are not sure where to place your topic just put it here.
Post Reply
Uta Jäger-Frenk
Posts: 5
Joined: Mon Jun 13, 2022 9:56 am

Finding objects of a special type for a given region

Post by Uta Jäger-Frenk »

Is there a possibility to locate e.g. all ports existing in the US?
For example using geocoding of a POI layer?
Any help is more than welcome.
Uta Jäger-Frenk
Support Specialist at PTV Logistics - Germany

Happy to help the products PTV Developer, PTV xServer, PTV Navigator G1 and G2
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Finding objects of a special type for a given region

Post by Bernd Welter »

Hi Uta,

depending on the specific usecase and the APIs you are supposed to use I could imagine several approaches:
  • Within xData2.SegmentsBySurroundingPolygonRequest you can locate all segments of a specific SegmentType (COMBINED_TRANSPORT) within a given rectangle. You may have to filter the result for BOAT.
    Disadvantage: there's no country filter available for this approach - but maybe you don't need it ;-)
    some of the response elements are RAILWAY STATIONS which you may have to filter  on client side
    some of the response elements are RAILWAY STATIONS which you may have to filter on client side
  • Within PTV Developer's Places Search there are some categories that might match some "port" criteria in their id, description or name. Use them to search within the area.
:!: But: please be aware that the purpose of our APIs is not to extract data on client side. Therefore we do not support such techniques :evil:

Bernd
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply