1

Show image of the POI with JS

Topic: Show image of the POI with JS

Hi

Would you tell us how we can show image and logo of the POI , when we send request for that,
we received informations about our POI information and the coordinate but just that for the image <d:ImageURL></d:ImageURL>.

see what we have as return when we send request with our srcipt ;

<d:ID m:type="Edm.Int64">2</d:ID>
        <d:Name>Moto Laval</d:Name>
        <d:X m:type="Edm.Double">-73.840828</d:X>
        <d:Y m:type="Edm.Double">45.559347</d:Y>
        <d:ImageURL></d:ImageURL>

thanks a lot

NTS

2

Show image of the POI with JS

Re: Show image of the POI with JS

maybe it will help you

getPoiImageUrl(Object poi, borderSize?)
Get poi image Url
Parameters:
poi - poi data
borderSize (default: String) - border size in pixels, if not specified – 32

http://docs.gurtam.com/api/hosting/#wialon.item.MPoi

Mobile Development
Gurtam
3

Show image of the POI with JS

Re: Show image of the POI with JS

Hi guys

We‘re still stuck with the POI image request !

Would you tell me how to get POI image and Icon with the API JS

We tried this code :

http://{host}/avl_poi_image/<sid>/<rid>/<pid>/<max_border>/<i>.png

But we only received those return as value :

Code:
{
    "poi":{
        <text>:{        /* sequence number of a POI */
            "id":<long>,    /* POI ID */
            "n":<text>,    /* POI name */
            "y":<double>,    /* longitude */
            "x":<double>,    /* latitude */
            "t":<double>,    /* image aspect ratio */
            "i":<short>,    /* image CRC16 */
            "e":<ushort>    /* data image CRC16 */
        }
    }
}


I think the "sid" means "session ID" ? yes or no ??

But about the "rid", "pid", "max_border" and "i" ?

Would you tell me where do I get those values from and if I need to include anything else in the code to have all Picture or Icon of POI ?

Thanks
NTS

4

Show image of the POI with JS

Re: Show image of the POI with JS

Getting POI images and icons using the Remote API -how to?

Mobile Development
Gurtam
5

Show image of the POI with JS

Re: Show image of the POI with JS

Hi guys,

Now we're able to show our images of POIs by JS request !

But the URL we received point to the DNS of hosting wialon

e.g "ImageURL": "http://hosting.wialon.com/avl_poi_image/xxxxx/1/256/xxxx.png

and we want to have as return a URL who pass by our DNS of our login page hosting on wialon side.

e.g :http://xxxx.our_dns.ca/index.html/avl_poi_image/xxxxx/1/256/xxxx.png

how we can have our url as return for the images or to point to our DNS (customizing login page hostng on Guartam side )

Thanks

NTS

6

Show image of the POI with JS

Re: Show image of the POI with JS

NTS,  its easy: everywhere use your DNS instead of hosting.wialon.com

At the dark side of telematics...