Page 1 of 1

Gas stations or Parking lots for trucks

Posted: Thu Jul 14, 2016 1:25 pm
by VPlachy
Hello,
how or in what layer can be viewed gas stations or parking lots for trucks on the map?
Thank you

Re: Gas stations or Parking lots for trucks

Posted: Thu Jul 14, 2016 3:35 pm
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

Re: Gas stations or Parking lots for trucks

Posted: Fri Jul 15, 2016 8:13 am
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

Re: Gas stations or Parking lots for trucks

Posted: Fri Jul 15, 2016 8:58 am
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

Re: Gas stations or Parking lots for trucks

Posted: Fri Jul 15, 2016 9:22 am
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

Re: Gas stations or Parking lots for trucks

Posted: Thu Mar 24, 2022 1:53 pm
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