Unable to find map in Sheet after dragging Country / Region into Sheet. there would be some online offline map options which should be explained.
First, make sure that Tableau is recognizing your country field as a country. Click the dropdown on your field to see this:
You should then see the lon/lat(generated) in the col/row as in my image.
If this doesn't work, check the lower right of your sheet for this:
If you see this, Tableau isn't able to match your country names to their recognized names. Click the unknown label and you will be able to define the matches.
You can define the match by searching by country that Tableau recognizes or define it with lat/lon in this screen.
Related
I'm trying to convert my country's Open Street Map data to a CSV file which I can then load in tableau and map businesses.
I downloaded osmconvert, which seems to be the default tool for this process.
Then I downloaded the Dominican Republic's data from this URL:
http://download.geofabrik.de/central-america/haiti-and-domrep.html
When I run the following command:
osmconvert64.exe data.osm --csv="#id #lon #lat #amenity #name #shop" --csv-headline --csv-separator=, -o=outfile.csv
I get a sheet like this:
Picture of excel sheet with empty columns
I seem to get the ID, Latitude and Longitude data right, but get empty amenity, name, and shop columns.
Am I writing the command wrong? I'd appreciate any help, since I can't seem to find an user-friendly tutorial on using this tool on the internet.
I'm not very familiar with osmconvert but as far as I know it will generate an entry for each element in the input file. Most elements from the input file won't have a amenity, name or shop tag. That's why you get so many empty columns. I guess you have to specify an additional filter to get only elements with an amenity or shop tag, possibly with the help of osmfilter.
Alternatively just use Overpass API and perform a simple query for all elements with an amenity or shop tag. Overpass API is also able to generate CSV output.
So I have been trying to pull latitude and longitude data from the page source of a craigslist search, but I can't seem to find the data. I am basically trying to replicate another example that I found on Stack Overflow, found here
The problem I seem to be having is that, unlike in the example from the link above, I cannot find these data in the source <p, although <div contains id="mapcontainer", data-arealat, and data-arealon.
I am using the following function to pull the attributes that I want:
xpathSApply(X,path="//p[#attribute I want]",fun = xmlGetAttr , name = 'name of attribute')
The problem is that I cannot find any latitude and longitude data in the page source. My question, then, is whether there is some sort of conversion from other attributes which must be done to get latitude and longitude data for each listing of a craigslist search?
Any help is greatly appreciated.
Is it possible to make Power BI read JSON data? I've spent an entire day yesterday to figure out how to convert the JSON data into a readable table in Power Bi, but with no luck.
I tried googling for hours, but there is no proper documentation anywhere.
I'm retrieving a JSON payload from my website and when I try to import, it shows the data like this:
Record
Record
Record
Record
Maybe there are any tutorials I can follow? Or perhaps another alternative to Power BI that would properly read and structure my JSON data?
As mentioned in comments, just besides each Record (if headers), are you able to see any small box with two arrows, try clicking it.
This Answer may help now..
First We have to convert this to table ->Click on the Icon in top left corner
Properties window will open. dont change anything Click on Ok.Now you can see the list converted to Column.
There is an arrow icon in the column -> Click on it
Main Step :In the property window uncheck "use original column name as prefix"
Here we go You can now use this result !
Refer Below Links :
https://www.mssqltips.com/sqlservertip/4621/using-power-bi-with-json-data-sources-and-files/
https://www.dutchdatadude.com/loading-multiple-json-files-using-power-query/
Retrieving data from a .json file brings in 'Records'. Each row of data is returned as a 'Record' which is a List. Each record in 'Records' is a hyperlink that opens the row elements. You could convert the 'Records' into a table, but you get a Table with a single column which has all the records with each record a row from the original JSON data.
Here is a link to few more details:
http://hodentekmsss.blogspot.com/2016/11/retrieving-json-data-in-power-bi.html
So, starting with the following query, I can pass user input to the Geocode API and return a json object/response with the locations details.
http://maps.googleapis.com/maps/api/geocode/json?address=10010
My problem is I have the following query with component filters with the country set to the US (United States). However, if you enter in a zipcode like this which is returning an area in Russia it still renders the map and sets the marker for the users current location.
http://maps.googleapis.com/maps/api/geocode/json?address=16721**&components=country:US**&sensor=false
Do I need to check the short_name within the returned object in a simple if statement and choose whether to issue a map request or not?
I thought component filters would restrict the user to search within the country specified? Then, return ZERO_RESULTS if there is not a match.
Any input, feedback is welcomed. Thanks!
Remove stars from from country name:
http://maps.googleapis.com/maps/api/geocode/json?address=16721**&sensor=false&components=country:US
I have a group of 10 volunteers who will distribute flyers in different areas. I want to make a web page where they can login and then add their markers by searching for the place instead of coordinates (if believe its done through Geocoding??). Then once the user is logged in I want them to filter the markers by "My markers" and "All markers" category.
So 2 things. How to make the user search using name instead of coordinates and add the marker. And second, how to filter the markers.
Thanks
Karan
Have you read
https://developers.google.com/maps/documentation/javascript/geocoding#GeocodingStatusCodes
? Then keep track of users' markers with an object referencing a Marker array, such as user['bob'] = [marker 1, marker 2, etc.] and switch on and off based on these user names.
When you run into a specific problem come back here.
Yes you are right you should use geocoding to get the user to the exact spot he wants.Then you can add the user markers in your database together with the userid so you can filter them by mymarkers.