fabiochiu/medium-articles huggingface dataset:
Maps and Cartography: Need for Simplicity in Map-Making!
By: Polosoft Technologies
Tags: Cartography, Geospatial, GIS, Maps, Mapping

When it comes to maps, you must know that map-making is part art and part science. To turn maps into an effective communication tool, you need to reach your audiences. To reach your audiences, the map must present itself in a simple way that gives a sense of comfort and an easement to the map users. There are many GIS Mapping Companies, who can create sophisticated yet simple-to-visualize maps that are truly making an impact in the Cartography world.

What is the Need for Simplicity in Map Making?

In a recent podcast, John Nelson talks about the creative side of the art of Cartography and also sheds some light on the skills necessary to make a good map. From his talk, we realized that there are different skills that are necessary to make a good map and among all these skills the most important, according to John Nelson, is simplicity!

A common mistake we often notice among geospatial specialists is that they try to put a lot of information in a single map often making it discouraging and sometimes even confusing.

Skills Necessary for a Map-maker

Experienced GIS specialists have to work on a variety of complicated tasks such as IT, analytics, and are not limited to being a good database manager and a good graphic designer. Having a designing background will certainly help the geospatial engineer go a long way in bringing efficacy in cartography. Experience in using tools such as ‘Color Brewer’ and ‘Viz Palette’ will help cartographers to pick meaningful colors for their maps.

Future of Maps

I believe the future of maps is likely in the hands of people who are creative and can bring the various applications of maps to the common people across various verticals.

Authorized groups such as the North American Cartographic Information Society (NACIS) have been a source of inspiration to geniuses like John Nelson who have constantly referred to ‘NACIS’ for their own work. He has the opinion that maps can definitely be taken to a wide array of audiences including the likes of Social Media, AI, Blockchain, and not just in Geography.

Conclusion

Map-making is not a big deal to make but to put it into real-life applications can be a little challenging if you lack creativity. Knowledge of the technicality is not enough to make it fit for today’s demanding audiences. If you can’t achieve the same level of awesomeness, you could look into hiring other GIS Mapping Services providers, who may have the right skill set that you are looking for.
MAP Economic Briefing with BSP Gov. Ben Diokno by Tracy Piamonte
By: Marge Friginal-Sanchez
Tags: Economic Outlook, Global Economy, Networking Events, Map

The Management Association of the Philippines (MAP) Economic Briefing and General Membership Meeting last Feb 6, 2020 was graced by BSP Governor Ben Diokno, who shared the economic outlook of the Philippines. His talk revolved around the Philippines being a strong nation amidst a slowing and volatile world.

While the global economy continues to post subdued growth, downside risks remain prominent. The risks that need to be monitored are rising geopolitical tensions between US and Iran; synchronized economic slowdown; increased intensity and frequency of natural hazards; infrastructure gap; higher tariff barriers between the US and its trading partners — especially China and the Novel Corona Virus, now called CoVid 2019.

The Philippines has the ability to sustain resilience despite setbacks, proof of which are sustained growth momentum at 5.9% GDP growth; ample liquidity and credit with $87.9B gross reserves by the end of 2019; robust external payment position; sound and stable banking system; modest fiscal deficit of 2.2%; and a favorable inflation environment at 2.5%.

Another good news is that the Philippines’ debt burden has eased significantly. External debt position remains manageable and largely medium-to-long term in nature, providing an adequate buffer against global headwinds.

The enactment of RA 11211 was crucial in BSP policy reforms, where significant amendments were made to the BSP Charter. The reform provides an increase in capital of PHP200B among others, and the impact includes price stability, financial stability and payment systems efficiency.

In summary, the Philippine economy is in a position of strength to weather volatilities and uncertainties in the global environment. Domestic sources of resilience allow us to sustain the alignment between positive economic growth and low inflation.

Sustained commitment to pursue NG’s infrastructure and reform agenda is key to achieving high, inclusive and sustainable growth, and increase investments in both hard and soft infrastructure, which is critical in avoiding a potential overheating of the domestic economy.

Balancing policy trade-offs is a critical part of the overall strategy of strengthening our economic growth potential. An appropriate mix of monetary, fiscal and other structural policies is crucial in achieving the government’s short and long-term macroeconomic objectives.

The BSP remains committed to staying the course by:

a. Maintaining price stability

b. Promoting financial sector soundness

c. Strengthening resilience against external shocks, and

d. Advocating inclusive growth
Geospatial 2.0-New beginnings in Geospatial Market in India
Tags: India, Geospatial, Marketing Strategies, Maps, Market Research Reports

The Indian government’s recent decision to democratise and liberalise geospatial data and map-based services has taken India one step ahead in this mission of adopting data as the new oil. The geospatial data and analytics market is one of the fastest-growing markets in the world, poised to become worth $157 billion by 2027.This decision would bring in much more investment in this sector

Geospatial data plays a crucial role in how primary sectors like financial services, agritech, pharma and healthcare, logistics, ecommerce, smart city planning, and several other sectors can be developed across the board. Even for the government, the availability of geospatial data is a must for planning of infrastructure, development, social development, natural calamities, agriculture environment protection, power, water, transportation, communication, and health.

However, the Indian government had firm mapping restrictions and regulations rife with bureaucratic red tape and licensing norms. This has held the Indian mapping industry back for over a decade, despite the country’s enormous potential to be at the frontier of location intelligence enterprises.

Geospatial data is used by private entities like navigation apps such as MapMyIndia, e-commerce websites like Amazon, food delivery apps like Swiggy, Zomato and transport apps like Uber and Ola among others.Earlier, companies needed government approval and licences to produce, change or disseminate such geospatial information. This would often involve long waiting periods and red tape.Under the new move, all government geospatial data including Survey of India, data collected by security and law enforcement agencies will be available for public use and no government approval will be necessary for any changes.

India’s regulated mapping — a legacy of the British rule — imposed various restrictions on navigation companies like MapMyIndia. Regulated mapping also meant that e-commerce companies used Google Maps and Google Earth instead of indigenous apps.

Private Indian companies have accordingly welcomed the move to deregulate mapping
Treachery of Mind. The famous pipe. How people reproached…
Tags: Maps, People

The famous pipe. How people reproached me for it! And yet, could you stuff my pipe? No, it’s just a representation, is it not? So if I had written on my picture “This is a pipe”, I’d have been lying!

— René Magritte

The map–territory relation describes the relationship between an object and a representation of that object, as in the relation between a geographical territory and a map of it. Polish-American scientist and philosopher Alfred Korzybski remarked that “the map is not the territory” and that “the word is not the thing”, encapsulating his view that an abstraction derived from something, or a reaction to it, is not the thing itself. Korzybski held that many people do confuse maps with territories, that is, confuse models of reality with reality itself. The relationship has also been expressed in other terms, such as Alan Watts’s “The menu is not the meal.”

The map of reality is not reality. Even the best maps are imperfect. That’s because they are reductions of what they represent. If a map were to represent the territory with perfect fidelity, it would no longer be a reduction and thus would no longer be useful to us. A map can also be a snapshot of a point in time, representing something that no longer exists. This is important to keep in mind as we think through problems and make better decisions.

“The map appears to us more real than the land.”

— D.H. Lawrence

Maps are necessary, but flawed. (By maps, we mean any abstraction of reality, including descriptions, theories, models, etc.) The problem with a map is not simply that it is an abstraction; we need abstraction. A map with the scale of one mile to one mile would not have the problems that maps have, nor would it be helpful in any way.

To solve this problem, the mind creates maps of reality in order to understand it, because the only way we can process the complexity of reality is through abstraction. But frequently, we don’t understand our maps or their limits. In fact, we are so reliant on abstraction that we will frequently use an incorrect model simply because we feel any model is preferable to no model. (Reminding one of the drunk looking for his keys under the streetlight because “That’s where the light is!”)
Rebuilding the Internet
By: Caroline Pagano
Tags: Maps

Thinking about what the internet is and trying to come up with words to describe it, is challenging in itself. When looking at this assignment I tried to think about the simplest way to describe such a complex topic. I thought about my grandparents and how I would go about explaining each component of the internet to them and I came up with a before and after chart.

Before Waze or google maps people had to use physical maps that were hard to follow. Because of Amazon, you can almost get anything you need with just a click of a button. You can even get your groceries delivered! Google has all the information you need. Don’t like school or classrooms? Now there are online classes so you can still get your education without leaving your home! These are just some of the things our society has due to the incredible internet!

The internet is for everyone but only those who have access to phones, computers, electricity, and data platforms. The internet is a digital tool that is easily accessible for networking, marketing, communications, purchasing goods as well as many more uses. The internet is alive. We all live there and will continue to live there as long as we keep using it.

#dgst101
Travel recommendations for explorers
By: Jules Dourlens
Tags: Travel, Maps, Mapping, Trip, Explore

We have tools for sharing blog articles, videos, photos, documents… But what about maps and locations. Today I write about Doko Maps. A tool for people to share and explore lists of recommended places.

While spending 4 years in Japan, I received requests from friends, family or friends of friends for where was the best place to stay, visit, eat and drink. After spending a lot of time sending email and text message I thought that creating an application that enables people sharing their favorite places could definitely help a lot of people.

I first want to share with you some of the lists that our community created:

Those lists are only s small set of what people created. You can find all the recommandations by countries or by time on Doko Maps.

How to create your own list

First you have to visit Doko Maps and signup.

As soon as you’ll have your own account. You’ll be asked if you want to create your first list of recommandations. Just find a name that anyone can understand. Naming your list is important as the name you chose will be the first thing other explorers will see.

Chose a name for your first list on Doko Maps

Once you chose the name of your list, you’ll be redirected to the list creation interface. On Doko Maps, you’ll need to structure list by categories. A category will help visitors filtering the places and a better understanding of your recommendations.

Don’t worry, the name of a category can be edited later, and you’ll always be able to add more or delete some.

Chose a category for the places you want to add.

For our first category, we’ll name it Restaurants. But you could have chosen anything you want like Hotels, Bars, Museums, Doctors, Parks, Cool photo spots…

Once our first category is created, we’re able to add places to it. Click the add new place button and search for its name.

Search for the place you’d like to add.

After selecting the place you want to add to your list, you’ll be able to add a description to it by clicking the edit button next to it. The description can be personal or add any tips, you don’t have to write a description if you don’t feel inspired.

Our map with 2 places for food in Ostend, Belgium

After adding more places and categories to my list, it is ready to be shared. In the settings we can add a small description and find the sharing link to be sent to your friends..

Click save and exit and you’ll be able to see the result of your work. You can visit this example map of Ostend in Belgium.
Visualizing the world’s watersheds for #WorldWaterDay
By: Mamata Akella
Tags: Maps, Data Visualisation, Rivers

We spend a lot of time thinking about the world parceled into meaningful units: political, cultural, physical — you name it and we probably have a system for saying what belongs and what doesn’t. And as cartographers at Stamen, we sometimes have access to data that lets us look at a region from a fresh perspective, showing these divisions in ways that actually make us feel more connected.

We learned recently that March 22nd has been designated “World Water Day” by the United Nations with the intention of bringing attention to global water insecurity. It seemed like a good day to highlight some work we’ve been doing with the World Wildlife Fund’s HydroRIVERS dataset, so here goes!

We’ve visualized a Blueprint for Global Water Security before, for the Nature Conservancy:

Where our water comes from in San Francisco: Hetch Hetchy, mainly

As informative as this set of maps (hopefully) are, they don’t really address how the water gets to where it’s ultimately going. So these new visualizations focus more on the flow and structure of the river than on their final destinations.

We’ve worked up several animations with this data throughout this post. In each animation, rivers animate starting at the most upstream location to where they empty into an ocean or inland basin. The river lines are colored by the total distance traveled, brightest have traveled furthest and darkest having traveled the least. Line widths are sized by the Strahler stream ordering system, which draws lines in a network with many connections quite thickly, and draws lines with few connections thinly. The maps visualize the distance of where the river begins to where it ends and everything it collects along the way.

All these maps are powered by CARTO’s excellent vector rendering library CARTO VL. We’re planning to publish a number of others throughout the week to help call attention to World Water Day a little longer, so if there’s a specific region or river you’d like us to pay attention to this week, drop us a line.

Monday we visualized North America, Asia & Oceania. Tuesday, we went to South America. Wednesday was Europe, Thursday we went to Africa…

Today, for our last set of maps we look at Siberia and the Arctic — projected of course!

As a bonus, we’ve added a couple of requests we got for: the Mekong River in Asia and the Columbia River in North America.

Arctic

Here we see the Canada’s longest river the Mackenzie flowing north, emptying in the Arctic Ocean and the Yukon River that starts in British Columbia, through Alaska, emptying in the Bering Sea:
Various Forms to Navigate
By: Zeo Auto
Tags: Delivery, Last Mile, Navigation, Route Planning, Maps

Today Zeo Route Planner has completed 500k successful deliveries. This is an important milestone in our quest to handcraft the most friendly platform for the drivers and we wanted to thank our users.

We would soon be introducing new navigation option on top of our pre selected optimised routes which we currently show our users.

Anticlockwise: This is specially important for users who have a round trip and come back to the hub location. At times due to certain considerations, users want to start from the last stop and finish at the first stop before heading back. We have introduced the anticlockwise routing option for our users.

Re Route: There are times, either due to a client asking for expedited delivery or a driver knowing a better way around that certain stops may be addressed before the others. For this and as a homage to the skill of our brilliant drivers we have introduced re route option where you can partially change the sequence of stops such that you can go on the route of your choice while getting the optimised route.

Original Route: Finally a lot of our users have asked us to provide them the option to navigate the way they have filled the route. While they love the optimisation options, at time due to company or order considerations, they want to navigate a particular way and still want to use Zeo Route Planner. We have honoured this and would now provide an option for our users to do just this.

There are many more services which we shall be introducing and keep you posted for the same!
Why Every Real Estate Firm Needs a Mapping Analytics Platform
Tags: Real Estate, Proptech, Maps, Commercial Real Estate, Analytics

Data-driven maps are invaluable in real estate, but are currently difficult to build and maintain

Real estate investors, lenders, developers, and brokers rely heavily on Excel to store and analyze their decision-critical data. But good real estate analysis is more than rows and columns in a spreadsheet; it depends on knowing where buildings, tenants, and competitors are in relation to one another, whether they’re across the street or across town. If mapping is essential to real estate analysis, what tools do these firms have to visualize and, more importantly, analyze their spatial data?

One tool that many people use to map data is BatchGeo.

After pasting a list of addresses into the website, you get a map with points drawn at each location. While this is an effective, simple tool to make a map, it is not an analytics solution. You can only make one static map at a time and cannot update the information or search across it for buildings of a certain size or tenants with a certain expiration date. Needless to say, a static map cannot identify trends such as buildings that are underpriced or markets that are primed for rent growth.

Another tool, top of the line mapping solutions called GIS (Geographic Information Systems) programs, are rarely mentioned in the real estate world. If you’ve never heard of GIS, imagine Excel but, instead of the data being stored as numbers and letters in rows and columns, the data are stored and displayed on a map. And, if you’ve never heard of these in the context of real estate investments, it’s for a reason: GIS software is extremely complex, expensive, and time-consuming to learn and operate.

Interface of a typical GIS program

With GIS, you can run extremely complex analyses, but the software is highly-specialized and requires experts to set up and maintain the systems, let alone conduct analyses.

If one set of mapping tools is too simple for real estate analytics, while the other is overly complex and expensive, what map-based analytics solution is in the sweet spot for real estate firms?

Predictre is the ideal, map-based intelligence platform for the commercial real estate industry. By consolidating, visualizing, and analyzing all the information real estate firms utilize to make acquisitions, leasing, and capital allocation decisions, Predictre empowers companies with cutting-edge analytics and actionable insights based on their decision-critical data. If you are ready to implement a spatial analytics platform for your commercial real estate firm, I hope you will reach out to us at www.predictre.ai
Complete Troubleshooting Guide For TomTom Voice Control Not Working
By: Tech Hub Usa
Tags: Technology, Services, Tech, Maps, Gps

We have come to know that your TomTom Voice Control Not Working properly. Behind this issue of your TomTom Gps device, there could be a number of possible reasons. But amongst all, the one reason that really matters is an outdated TomTom Gps device.

Moving forward in this article, let’s find out how to fix it when TomTom stops working. So, repeat all the steps in the same order as given. By the end of this article. Your issue with TomTom GPS will get fixed.

What You Should Do When TomTom Voice Control Not Working?

For a number of reasons if your voice control not working on TomTom, here are some common steps.

Complete Your Gps Update

Most of the time, the TomTom voice control stops working soon after you have completed a Tomtom Map Update. Hence, you need to verify whether you have completed the TomTom update successfully or not.

While doing the Tomtom GPS Update, it could be possible that any file got missed or corrupted. Or else, you may have left any window unopened.

2. Restart TomTom Gps Device

Most of the time, an issue like this could be easily fixed just by a quick restarting process. So, do follow the below-given steps to fix the issue of TomTom Voice Control Not Working.

Press the power button on the Gps device to turn it off.

Don’t forget to detach all the cables connected to it.

Remove the power plug of the TomTom Gps device from the wall outlet.

Don’t turn on your TomTom device for more than 60 seconds.

Reconnect all the detached cables and turn on the power plug.

After doing that, check whether your Gps device starts working again or something is wrong.

3. Check The Microphone Of TomTom

Have you checked the microphone button given on your Gps device? It may be possible that you haven’t turned on the button yet. This is the main reason why TomTom Gps is not listening to any of your commands.

Hence, find out the microphone button on your Gps device and turn it on. After doing that, you have to check again if your TomTom Voice Control Not Working.

4. Update The TomTom Gps Device Again

Even after trying all the steps, if still, your Gps device is not working then do Tomtom XL Update again.

You must have a good speed internet connection.

Make sure that you have completely charged your Gps device.

When your device will be charged completely, remove it from the vehicle.

With the help of a USB cable, connect your TomTom with the computer.

Once your GPS is connected, you will get a notification on your computer device.

On your computer device, download the TomTom Home which is software that will help you to complete the map update process.

Once the Tomtom Map Update process will be completed, remove the device from the computer and connect it back to the vehicle.

Conclusion

In this guide, we have discussed all the possible ways to fix why TomTom Voice Control Not Working. With the help of the given methods, you can easily fix the Gps voice control issue quickly.
Creating location based Dashboards
By: Prathmesh Jakkanwar
Tags: Visualization, Dashboards, Nodejs, Maps, Covid 19

Setup

The code comprises of 3 components

API for the location data / crawler to get location data from a html page

import csv

from fake_useragent import UserAgent

import requests

from bs4 import BeautifulSoup def scrape_data(url): ua = UserAgent()

header = {'User-Agent':str(ua.chrome)}

response = requests.get(url, timeout=10,headers=header)

soup = BeautifulSoup(response.content, 'html.parser') table = soup.find_all('table')... <----- use this to get your selected table ----->

rows = table.select('tbody > tr')<----- use this to get your rows -----> with open(<output_filename.csv>, 'w',newline='') as csv_file:

writer = csv.writer(csv_file)

writer.writerow([])

for row in rows:

data = [th.text.rstrip() for th in row.select('td')]<----- use this to get your selected data from the td elements ----->

writer.writerow(data) if __name__=="__main__":

url = "<url_to_crawl>"

scrape_data(url) NOTE: Make sure you have your own selectors depending on the table structure on the webpage that you are crawling.

a config for setting up basic controls on the page

display logic (html)

Supporting APIs

For creating the above dashboards, I have used mapbox api for generating maps and location markers for the hospitals. Mapbox gives you a lot of control over how you want to display your data on the map. You’ll have to create a API_TOKEN to be used for your intended webpage.

In my case, I have used a web crawler for the Nagpur dashboard and api response for the Delhi dashboard. I create a CSV and then A GEOJson to map it onto mapbox.

Once this setup is ready, it is time to publish the web application.

I am using an Amazon EC2 instance with a http server serving my js/html and Route53 to reroute the webpage to my domains that I have purchased on GoDaddy. Make sure the security rules (inbound and outbound) are defined correctly.

To have a continuous data update, set up a CRON job on your EC2 instance with the schedule that you want to run your job on. I am using node in this case.

SSH into your instance and open crontab

Crontab -e

Edit the file with your schedule

This would run the file every 15 minutes

HOME=/opt

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin */15 * * * * <path_to_node_bin/node> <file that you want to run on this schedule>

In my case, I have purchased my domain names from GoDaddy and used Route53 to reroute it. Refer to this url for help in setting that up.This would enable your webpage online and you can access it through a browser.
Install Latest Magellan Map Update
By: Tech Hub Usa
Tags: Technology, Services, Tech, Maps, Gps

No doubt that the Magellan Gps device is user friendly and covers the needs of a number of users. But, for its flawless and endless performance, it is necessary to do the Magellan Gps Update.

Due to the continuous construction, the landscape continues to change. Hence, if you will not update your Magellan Gps maps, you will never reach the right destination.

So, read this guide properly and follow all the steps in the same given order. By the end of this article, you will be aware of how to do the Magellan Updates.

Steps To Complete Magellan Gps Update

It is very necessary to do the Magellan Map Update for its better and amazing performance. With the best quality, you will also get all the latest features and maps.

Charge Your Gps Device

To begin the process of updating Magellan Gps, connect your device with the charger until it will not charge to full. It is because your device should not get down in between the Magellan Gps Update process.

2. Download Magellan Content Manager

Once your device will be fully charged, download the content manager to your computer. Let us tell you that Magellan Gps Software is the one that will help you to download the latest map updates without facing many issues.

You can easily download the Content manager from the official site of Magellan. So, connect your computer device with the internet and begin the process to download the Magellan Gps Update Software.

3. Install Magellan Content Manager

Once you will complete the process to download the file into your computer. Open the file and complete the installation process by following all the on-screen instructions.

4. Connect Gps With The Computer

Soon after you will install the Content Manager into your computer, now connect the Gps device.

Along with the Gps device, you must get a USB cable. Hence, with the help of that cable, do connect your Gps with the computer.

After connecting both the end of Gps correctly, press the power button on the Gps device.

5. Launch Content Manager

Once your device will be connected to the computer, open the file of the content manager to complete the Magellan Gps Update .

Launch the content manager by tapping on its icon.

When you will open the software, you will have to enter the email id and password. So, enter the Magellan Gps credentials.

In case you are a new user, you will have to create an account now.

Once you will log into the software, click on “check for updates”

You will get the notification for available Magellan Gps Map Update .

Now, it’s up to you whether you want a free or paid GPS update.

6. Remove Magellan Gps From Computer

When your Magellan Gps device will be updated to its latest version, remove it from the computer. After the update, your device will restart automatically so you don’t have to worry about it.

Conclusion

In this guide, we have told you all the steps that are required to complete the Magellan Gps update. Hence, this is your responsibility now to complete the Gps update after a regular interval of time.
[ROS]在Google地圖上即時顯示GPS 的軌跡(2/2) — 繪製在地圖上
Tags: Ros, Map, JavaScript, Google, Gps

如題，目標是播放ROSbag，並接收ROSbag發布的訊息，在Google地圖上即時顯示GPS 的軌跡。要達到這點，要在JavaScript這端能接收到ROS的訊息，並更新軌跡，繪製在地圖上。

在前一篇中介紹了如何串接ROS端和JavaScript端

接著，這一篇會是接收ROSbag播放時的GPS訊息並繪製在地圖上。

一、接收GPS訊息

我們從上一篇roslib的tutorial (http://wiki.ros.org/roslibjs/Tutorials/BasicRosFunctionality)來改。關於連線的部分保留，改動callback function的觸發時機和內容。 新的callback function應該長類似這樣。

var gps_listener = new ROSLIB.Topic({

ros : ros,

name : '/running_gps',

messageType : 'sensor_msgs/NavSatFix'

});



gps_listener.subscribe(function(msg) {

console.log('Received message on ' + gps_listener.name + ': ' + msg.longitude + " " + msg.latitude);

document.getElementById('longitude').innerHTML = msg.longitude

document.getElementById('latitude').innerHTML = msg.latitude

});

主要就是要subscribe的topic名稱、類型變了 ; 在callback function中，讓他在console印出經緯度並改變網頁上顯示的內容。

完整程式碼如下：

一開始用瀏覽器打開並開啟console，如果成功連上

接著，開始播放bag，經緯度資料會顯示在網頁上，console也會印出相關訊息

二、繪製在地圖上

接著是將接收到的資訊畫在地圖上。

首先是顯示地圖，可以參考Google的範例，主要就是html部分創建了一個div ( <div id=”map”></div> )，並在script中初始化。

<script>

var map;

function initMap() {

map = new google.maps.Map(document.getElementById('map'), {

center: {lat: -34.397, lng: 150.644},

zoom: 8

});

}

</script>

<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap" async defer></script>

這裡的 YOUR_API_KEY 不給其實也沒關係，只是顯示的地圖會有 For development purposes only 的字樣。

接下來來處理路徑。主要就是在每次收到GPS訊息的callback function中，新收到的點和上一次收到的點連成一條線並畫出來。

完整code

Line 23的 PolylineCoordinates 用來存放GPS的座標。

callback function中的Line 57~ 60是在第一次收到座標後，更改地圖的中心，在一開始初始化時還不知道位置，所以隨便訂在經緯度都是0的地方。

57 // set the center if first receive message

58 if(PolylineCoordinates.length == 0) {

59 map.setCenter(latlng);

60 }

Line 62~ 80則是整個畫上路徑。

最後結果：
Visualization and Analysis of Transportation in Barcelona
By: Sourin Karmakar
Tags: Data Visualization, Storytelling, Transportation, Charts And Graphs, Maps

Cable car in Barcelona

Exploring the city

In this blog I am going to explore upon the Barcelona datasets on transportation.

In a city like Barcelona, transportation becomes very crucial and it serves as lifeline for many people.

In my previous two blogs (part-I and part-II) I have explored a lot with some visualisations covering the population, births,death,accidents, immigration and emigration. The dataset is available on kaggle

Transportation in Barcelona

In this section I will be analysing on two datasets i.e. the bus stops and transportation.

The bus stop gives a complete picture about Barcelona’s bus service and transportation covers entire transportation services in Barcelona.

Bus stops

This table gives an overall picture of Barcelona’s bus stops and stations

From this table we can see that

There are 3 different kinds of bus stops and bus stations (where buses are kept or, a bus terminal).

There are total 3146 bus stops + stations.

There are total 3 bus stations.

There is a separate bus service connecting airport.

Most no.of day bus stops are in Sants-Montjuic district

Most no.of night bus stops and airport bus stops are there in Eixample

Eixample has the day to night bus stops ratio least indicating that the no.of bus stops are even during day and night. Whereas in Sants-Montjuic this ratio is highest indicating the no.of night bus stops are very less as compared to no.of day bus stops.

The no.of Airport bus stops in Eixample is the most, indicating that most of the people from Eixample are accessing the airport bus services or, since this is the city centre so it is most likely that people who are coming from outside will visit Eixample.

Here a table is used to show this information as table makes the picture more precise and one can go through the data very easily as the no.of entries and the numbers themselves are not large.

Now let’s see the above information visually also

Eixample is leading the chart with most no.of night bus stops. One inference we can make is that as the city centre and most of workplaces are located here. So people may need the services late night in this district.

Since the dataset contains latitude and longitude for each bus stop we can actually perceive the data geographically and make certain inferences out of it.
Hash Table Vs Concurrent HashMap and it’s internal working
By: Chinmay Venkata Sabbam
Tags: Collections Framework, Java, Programming, Maps, Concurrency

1. Hierarchy Diagrams of Hash Table and Concurrent HashMap

Hierarchy Diagram of Hash Table

Hierarchy Diagram of ConcurrentHashMap

2. properties of HashTable and concurrent HashMap

Behaviours of HashTable and the ConcurrentHashMap

Even though all properties of HashTable and Concurrent HashMap is similar but “If it is a thread-safe highly-concurrent implementation is desired, then it is recommended to use Concurrent HashMap in place of Hashtable.” why ..???

Even though both Concurrent HashMap and Hashtable are thread safe. But Hash Table have a poor performance in the Multi Threading usage.

in the Multi Threading usage. If one thread allows to perform any kind of operation (put or get) , other thread must and should wait until the operation was completed by the thread which is working on hash Table.

To understand these above points clearly we need to understand the Internal working of the HashTable and ConcurrentHashMap. For better understanding the internal working of HashTable and ConcurrentHashMap. go through internal working of HashMap

3. Internal working of HashTable

HashTable Structure as similar as HashMap

This diagram is seems to be similar to the internal implementation of HashMap, but Hashtable is synchronized and provides thread safety like concurrentHashMap but in the performance point of view,Hashtable write operation uses map wide lock which means it locks the complete map object.

Example for better understanding

Thread T1 calls get()/put() operation on Hashtable and acquires the lock on complete hashtable object.

Now if Thread T2 calls get()/put() operation, It has to wait till T1 finishes get()/put() operation and releases the lock on the object.
Seven Maps to Understand Bitcoin/Crypto Legality
Tags: Visualization, Regulation, Maps, Bitcoin, Cryptocurrency

Hello there! Today, we have a bit unusual post. Instead of diving deep into the topic, telling amazing stories, and sharing our experience, we will just show you a few images. The topic of cryptocurrency legality is pretty large. It’s not a simple task to grasp the nuances at once, especially if you read about them. That’s why we will focus on visualization.

Note that images are taken from external sources that are mentioned in descriptions. Still, we at Superorder try to promote the crypto usefulness in our own way. Feel free to join us in this crusade!

A Short Foreword

From the very first days of Bitcoin, governments and banks discuss the nature of cryptocurrencies. Some world leaders admit that these assets are equal to fiat money. Others ban crypto totally. However, the most popular approach is to set a so-called grey zone in which cryptocurrencies are neither legal nor illegal. For traders, it’s important to know laws to use crypto according to them. The following images should help here.

Maps, Maps, and More Maps

While the topic of crypto legality if really large, we don’t want to talk about various opinions, pros, and cons. It’s up to each country whether to allow trading/investing/mining, keep it illegal or be neutral. But we want to show you some cool maps, no more. Data may differ because of different sources so compare and find the truth.

Map #1: World Opinions on BTC

This agency decided to position its research differently. Instead of shouting about real legality, it mentioned the world’s thoughts. However, the result is the same: we have a shiny map that shows how governments react to crypto/ICOs. The map is dated by 2018, too.
Georgetown and the City of Washington the Capital of the United States of America
By: Texas General Land Office
Tags: Maps, Washington DC, History

J.H. Colton & Co.

[New York], 1856

J.H. Colton & Co., Georgetown and the City of Washington the Capital of the United States of America, New York: 1856, Map #95359, Map Collection, Archives and Records Program, Texas General Land Office, Austin, TX.

Similar to Austin, Texas, Washington, D.C., was a planned city constructed specifically to serve as its nation’s capital. Congress passed the Residence Act on July 16, 1790, which created a permanent seat of government for the United States to be situated on the Potomac River.[1] Again like Austin, the idea of westward expansion played a role in the capital’s location. President George Washington personally selected the site, calling it “the gateway to the interior” because he aspired to link the expanding U.S. western territories to the East Coast.[2]

The relatively unadorned title block is surrounded by Colton’s intricate border. ”№24.” indicates the map’s page in the Atlas of the World.

Land for the capital was ceded to the federal government by Maryland and Virginia to create the District of Columbia. Andrew Ellicott and Benjamin Banneker, a free Black man, surveyed the city, a ten-mile square as prescribed by the Residence Act. The government entrusted the task of designing the capital’s layout to Pierre L’Enfant, a French-born artist and engineer who became an American citizen. Washington described him as a “‘scientific man,’ of taste, whose ‘professional knowledge’ for directing large-scale public works was unsurpassed.”[3] Writing to Washington in an attempt to earn the commission as the city’s designer, L’Enfant proposed that the capital “Should be drawn on such a Scale as to leave room for that aggrandisement and embellishment which the increase of the wealth of the Nation will permit it to pursue at any period however remote.”[4]
ES6 collections: Sets and Maps
By: Meera Gandhi
Tags: Maps, Collection, ES6

In javascript until ES6, arrays and objects are the most important data structure to store the data. But objects and arrays had several limitations like:

Arrays can have duplicate values. Data in an array is considered an indexed collection. In objects, we can store keys only as a string. Objects don’t remember the insertion order and also we can’t find the size of an object easily.

But in ES6, We have new methods to overcome these limitations 😎. So, let’s understand how to use Sets and Maps in a different situation.

Sets

Set is an ordered collection of unique values. The values in a set can be simple primitive data types like string or integer as well as more complex object types like arrays or objects literals.

Creating and initializing of set

A new set can be created with some initial value like this:

const userSet = new Set(['xyz', 'abc', 'def', 'ghi']);

console.log(userSet); //Output:

Set { 'xyz', 'abc', 'def', 'ghi' }

Set properties and methods

Use the add method to insert any element of the set

userSet.add('jkl');

userSet.add('mno');

userSet.add('mno');

console.log(userSet); //Output:

Set { 'xyz', 'abc', 'def', 'ghi', 'jkl', 'mno' }

Ohh.. see, here I was adding a duplicate value but it can’t be added to the set because the set is a collection of unique values!

Use the delete method to remove any element of the set:

userSet.delete('abc');

Use the size property to find the size of the set. It will return the number of elements in it:

userSet.size //5

Use the has method to check any element exist in the set or not:

userSet.has('abc') //false

userSet.has('xyz') //true

If we want to clear the whole set then use the clear method:

userSet.clear()

Set iteration methods

Set has a method called keys() which get all keys:

const numbers = new Set([11, 23, 14]);

console.log(numbers.keys()); //Output:

[Set Iterator] { 11, 23, 14 }

Set has a method called values() which get all values:

console.log(numbers.values()); //Output:

[Set Iterator] { 11, 23, 14 }

Here, if you have noticed both outputs were the same because in this set we don’t have any objects that’s why it will be considered the same key and value.

Set has a method called entries() which get all keys and values:

console.log(numbers.entries()); //Output:

[Set Entries] { [ 11, 11 ], [ 23, 23 ], [ 14, 14 ] }

We can use forEach or for-of loop on this to retrieve the values
Ep. 29 — Should you take that toll road to save time?
By: Billy Lo
Tags: Driving, Transportation, Navigation, Maps, API

Tradeoffs can be agonizing when you don’t have easy access to good data

If you drive in North America or Europe, you often have to face this simple tradeoff: Time Savings vs. Toll Charges. The decision is actually not an easy one. Time Saving is dependent on traffic conditions on two different routes; even the toll charge is not straightforward because it varies based on time of day and/or day of the week.

So we have little choice but to take an educated guess, every single time.

My colleague Dinesh inspired me to tackle this. Upon searching for existing solution, I was quite surprised none of the navigation apps offer useful info. So I gave it a try.

HERE (formerly NavTEQ) has a fleet telematic API for toll charges along any route, I just need to generate two routing requests (one allowing the use of toll roads; and another avoiding toll) for calculating the time savings.

The end result? I named the tool - “Toll or Not”. Let me show you the web version first.

An impactful software engineer in today’s world does not have to be a 10X guru in a specific platform or domain. It can be about blending components together in creative ways; just like a master chef does when he or she makes a cool dish.

Sure, a master chef still possesses strong fundamentals. But it’s his/her knowledge on the ingredients available and creativity/boldness that sets him/her apart.

For us, the ingredients are APIs, widgets, open source libraries, data sets and ML models. Broad awareness to them is very valuable. 1+1 can equal 3.

Here are a few ideas on how to broaden your choice of ingredients:

Subscribe to newsletters such as ProgrammableWeb.com to check out new APIs being brought onto the market. For data sets, many cities/governments have Open Data initiatives (e.g. Open Data Canada and Open Data Toronto) that include a rich catalog; from census data to traffic light locations in the city. For widgets and open source libraries, I rely on curators on GitHub who put together awesome lists like these.

Back to the “Toll or Not” decision support feature, I like it a lot (thanks Dinesh), so I added the same capability to my driving assistant app. You can pick up the latest version from Sidekick-App.com.

That’s all for now. Until next time. Stay safe!
America’s Best States for Craft Beer May Surprise You
By: Erin Brookins, Wilcox
Tags: Data Visualization, Craft Beer, Data, Beer, Maps

What is America’s best beer state? The answer lies in finding the balance between quantity and quality.

Quantity

A lot of articles approach this question by looking at sheer presence of beer and number of craft breweries. These data points rarely yield any surprises. Colorado and the West Coast famously maintain a significant brewery presence. California in particular has by far the highest total number of breweries with 958 — by comparison, New York comes in at #2 with only 460 breweries.

It is also worth noting that Texas and Florida, two states not traditionally thought of as beer strongholds, have seen an incredible explosion in craft beer over the last decade catapulting them up to the top 10.

Notably, the four states mentioned above are behemoths in terms of population. Given how mainstream craft beer has become, it’s no surprise that population is starting to play a larger role in determining the presence of craft breweries in any one state.

A potentially more informative way of approaching the true impact of beer in a state’s culture nowadays is by adopting a per capita approach.

Viewed from this angle, while the Pacific Northwest and Colorado still live up to their respective reputations, northern New England is the true breakout star. In fact, Maine and Vermont pulled in the two highest scores overall, and Portland, ME has the most breweries per capita of any city, with about 18 per 50,000 people.

Quality

Taking a similar approach to quality also yields some interesting results. Using RateBeer’s annual ranking of 100 Best Brewers in the World, California expectedly dominates in terms of sheer count of breweries that made the list, with a strong showing from Florida, Michigan, and New York as well.

However, with total number of breweries factored in, Delaware absolutely dominates solely on the presence of world-famous Dogfish Head — a highly influential brand that makes up one of its only 32 breweries. Perhaps an even more unexpected twist is the top marks for Missouri, a state that manages to land three out of its 150 breweries on the list, including Maplewood’s Side Project Brewing at an impressive #2 overall.

Balancing both of these factors together, the states that have the best overall balance of per capita brewery presence and brewery quality are (in no particular order):

Maine Alaska Vermont

Though perhaps aided by their relatively small populations, the quality and quantity these states manage is nonetheless impressive. While California is undoubtedly still a great place to grab a beer, other parts of America have now earned their spot at the table.