Gas stations or Parking lots for trucks

This forum covers all questions dealing with visualization of data within the native PTV xMap interface. Please remember that additional plugins such as AJAX or Leaflet may be handeled in other forums.
Post Reply
VPlachy
Posts: 21
Joined: Fri Nov 27, 2015 10:44 am
Location: Czech Republic
Contact:

Gas stations or Parking lots for trucks

Post by VPlachy »

Hello,
how or in what layer can be viewed gas stations or parking lots for trucks on the map?
Thank you
Vladimír Plachý, DiS.
Developer windows applications
D&Comm s.r.o. - Czech Republic
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Gas stations or Parking lots for trucks

Post by Bernd Welter »

Hello Vlad,

PTV can offer so-called POINTS OF INTEREST which contain various categories such as
Sample image that displays POI based on SMO Layer.<br />The categories 7369, 7313, 7311 are visible.
Sample image that displays POI based on SMO Layer.
The categories 7369, 7313, 7311 are visible.
  • 7369 - Open Parking Area
  • 7313 - Parking Garage
  • 7311 - Petrol Station
  • ...
Those POIs come from HERE or TOMTOM and the categories are listed
http://xserver.ptvgroup.com/fileadmin/f ... _Types.htm

Further information is available at http://xserver.ptvgroup.com/fileadmin/f ... n%7C_____7

And here is a sample XML request for this:

Code: Select all

<?xml version="1.0"?>
<Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/soap/envelope/">
  <Body>
    <renderMap xmlns="http://types.xmap.xserver.ptvag.com">
      <MapSection_1 scale="500" scrollHorizontal="0" scrollVertical="0" zoom="0">
        <center xmlns="http://xmap.xserver.ptvag.com">
          <kml xsi:nil="true" xmlns="http://common.xserver.ptvag.com" />
          <point x="682055.81" y="6372194.6" xmlns="http://common.xserver.ptvag.com" />
        </center>
      </MapSection_1>
      <MapParams_2 showScale="true" useMiles="false" />
      <ImageInfo_3 format="GIF" height="777" imageParameter="" width="777" />
      <ArrayOfLayer_4>
        <Layer xsi:type="SMOLayer" name="default.points-of-interest.default;featurecode in ('7311','7369','7313')" visible="true" configuration="" objectInfos="REFERENCEPOINT" xmlns="http://xmap.xserver.ptvag.com" />
      </ArrayOfLayer_4>
      <boolean_5>true</boolean_5>
      <CallerContext_6>
        <wrappedProperties xmlns="http://baseservices.service.jabba.ptvag.com">
          <CallerContextProperty key="CoordFormat" value="PTV_MERCATOR" />
          <CallerContextProperty />
          <CallerContextProperty />
        </wrappedProperties>
      </CallerContext_6>
    </renderMap>
  </Body>
</Envelope>
Do you need more info?

Best regards 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:
VPlachy
Posts: 21
Joined: Fri Nov 27, 2015 10:44 am
Location: Czech Republic
Contact:

Re: Gas stations or Parking lots for trucks

Post by VPlachy »

Hello Brend,
thank you for your information.
I have one question yet. How can I add this layer to a map in C # project? Somehow, I fail to program it.

Best regards Vladimir
Vladimír Plachý, DiS.
Developer windows applications
D&Comm s.r.o. - Czech Republic
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Gas stations or Parking lots for trucks

Post by Bernd Welter »

Hello Vlad,

if you want to use a native layer for painting just use the following one:

Code: Select all

new SMOLayer()
{
     name = "default.points-of-interest.default;featurecode in ('7311','7369','7313')",
     objectInfos = ObjectInfoType.REFERENCEPOINT,
     visible = true                  
};
But: if you work with the xServer.NET control I have to involve a colleague to request a sample. I hope Oliver can provide some nice code.

Best regards Bernd

PS: I moved the topic to xMap forum as it is not a routing topic
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:
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Gas stations or Parking lots for trucks

Post by Bernd Welter »

and here is some info from Oliver:
I recommend to take a look at the ServerSideRendering example available at https://github.com/ptv-logistics/xservernet-bin
The sample demonstrates how to integrate native SMO layers into xServer.NET layers.

https://github.com/ptv-logistics/xserve ... #L132-L152

For client side rendering I recommend to use this sample: https://github.com/ptv-logistics/SharpMap.Widgets
Best regards 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:
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Gas stations or Parking lots for trucks

Post by Bernd Welter »

Recently I've been asked whether we can offer a search for EV charging stations (electronic vehicles).
As some of you might have noticed: there's no POI search in xServer 2 but we implemented this approach in the PTV Developer API which was released for PROD in summer 2021.
Result of a search for EV charging stations around the location of PTV's head quarter. I used the new PTV Developer API
Result of a search for EV charging stations around the location of PTV's head quarter. I used the new PTV Developer API
For details check the documentation of the Places API.
Best regards,
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