<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sandeep Saha on Medium]]></title>
        <description><![CDATA[Stories by Sandeep Saha on Medium]]></description>
        <link>https://medium.com/@sandipsaha19101995?source=rss-12dbbddb991b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*cGGfbQSdUiBGaFZPLhgZ7w.png</url>
            <title>Stories by Sandeep Saha on Medium</title>
            <link>https://medium.com/@sandipsaha19101995?source=rss-12dbbddb991b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 01:59:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sandipsaha19101995/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How we test GPS enabled applications with fake data]]></title>
            <link>https://medium.com/@sandipsaha19101995/how-we-test-gps-enabled-applications-with-fake-data-4993f2b8089?source=rss-12dbbddb991b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4993f2b8089</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Sandeep Saha]]></dc:creator>
            <pubDate>Thu, 12 Apr 2018 13:52:15 GMT</pubDate>
            <atom:updated>2018-04-12T13:52:39.129Z</atom:updated>
            <content:encoded><![CDATA[<p>Previous week we worked on a gps related project where we want to show a location of a car moving through road and we need a very easy way to test that project with fake data. Then we start to develop a library by which we can easily do it and we develop gps-fuzzer to do that work.</p><p><em>gps-fuzzer</em> interpolates Lat Long points along a polyline and publishes the points data to a given mqtt topic. There are REST APIs available for</p><ul><li>starting a fuzzer on a topic</li><li>stopping an existing fuzzer on a particular topic</li></ul><p>You just need to install npm in your computer and a running mqtt broker.</p><p>You can start fuzzer by calling a post api (<strong>http://localhost:9999/fuzzgps</strong>).</p><p>For example -</p><pre>curl -d ‘{“tripId”:12, “points”:[{ “lati”: 22.5803, “longi”: 88.4378 }, { “lati”: 22.57, “longi”: 88.4200 }, { “lati”: 22.5691, “longi”: 88.4090 }], “topic”:”eyezon/livegps”, “interval”:1000, “duration”:4000, “loop”:true}’ -H “Content-Type: application/json” -X POST <a href="http://localhost:9999/fuzzgps">http://localhost:9999/fuzzgps</a></pre><p>Gps-fuzzer gives you the interpolated points between this end points and publish the points to a mqtt server. By this points i can test the movement of my marker. So, i subscribe to that mqtt topic to get those points.</p><pre>var topic = ‘eyezon/livegps’</pre><pre>var client = mqtt.connect(`ws://iot.eclipse.org:80/ws`)</pre><pre>client.on(‘connect’, function () {</pre><pre>    console.log(“MQTT Connected!”)</pre><pre>})</pre><pre>client.on(‘error’, (error) =&gt; {</pre><pre>    console.log(error)</pre><pre>})</pre><pre>client.subscribe(topic)</pre><p>So, when gps-fuzzer start publishing points on that topic i get those points because i subscribe on that topic. With that points i can easily test the movement of the car.</p><p>There is a loop key in the post json when it is set false gps-fuzzer interpolates one time and stop. If it is set true it loop between those two points.</p><p>When you want to stop gps-fuzzer you just make a get request using api provided in gps-fuzzer -</p><pre>curl -X GET \’<a href="http://localhost:9999/stopfuzzgps?topic=eyezon%2Flivegps">http://localhost:9999/stopfuzzgps?topic=eyezon%2Flivegps</a>&#39;</pre><p>It successfully stop gps-fuzzer to interpolate between two endpoints.</p><p>At Last my project looks like -</p><p>Github repository-</p><p><a href="https://github.com/sbhsb/Implementation-of-gps-fuzzer">sbhsb/Implementation-of-gps-fuzzer</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*EAJdbaUYRvlJlJTOOhwViQ.gif" /><figcaption>Final look of my project</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4993f2b8089" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>