create account

Steem Map: Development Road by lightproject

View this thread on: hive.blogpeakd.comecency.com
· @lightproject · (edited)
$156.88
Steem Map: Development Road
<center><a href="https://imgbb.com/"><img src="https://image.ibb.co/bYU5M5/steem_map.jpg" alt="steem_map" border="0"></center>




<h1><center>Intro</center></h1>

Hello Steemians,

Creating a Web Map App with all Steemians locations might not seem like a super complex project, however, due to my lack of experience in Python and backend web design, I am forced to keep good track of my steps and take every single decision carefully. 

**The motivation behind is promoting meetups and user-to-user interaction** . Hopefully, with this app users will easily find other Steemians in their neighborhood/area whether using a distance or province/country filtering.

With this roadmap I would like to describe the steps and challenges I have found so far in the current project that I am involved with.

<h1><center>Concept </center></h1>

 <center>

*Finding a map service
Retrieving locations from SteemData Server
Feeding Map with locations
Enabling Map filter feature*

 </center>


<h1><center>Map Service Choice </center></h1>
There are many possibilities out there, many are free but are usually limited by the amount of geolocations uses per day.

I was deciding between one of the following:

pubnub|infosniper|batchgeo
-|-|-
yahoo|google|

Since most services are limited, I decided to going for google maps because of the extensive and good quality of its documentation.

<center>https://www.seeklogo.net/wp-content/uploads/2015/09/new-google-maps-logo-vector-download.jpg</center>

<h1><center> User Location Data Retrieval</center></h1>

The first step was finding a way to get all locations within the blockchain. My solution was using MongoDB and SteemData by Furion (https://steemit.com/steemdata/@furion/getting-started-with-steemdata).

https://steemitimages.com/0x0/https://i.imgur.com/uAu5ST4.jpg

<h1><center>Feeding Map with locations</center></h1>

This is the tricky part. Since I do not want to pay the subscription for unlimited geolocations calls, I have two possibilities:
- Get geolocations locally from a dictionary and create a database embedding all user location coordinates
- Get a separated geolocation service that feeds my webmap

Since I decided beforehand running the backend in Python, I chose the great tool "Geopy" as a remote geolocation service (running in Python). For the rest of the processes, I will be running Python3 and additionally the Pymongo module for the Database management.

**Testing code so far:**

```
from geopy.geocoders import Nominatim

import datetime

from steemdata import SteemData
geolocator = Nominatim()
from pymongo import MongoClient
client = MongoClient('localhost', 27017)
db = client.test_database
collection = db.test_collection
data2 = []

s = SteemData()

data = s.Accounts.aggregate(

[

{
   "$match": {
            "profile.location": { "$exists": "true", "$ne": "null" }
        }
    },
    { 
    "$project":
    {
        "account":"$account",
        "location":"$profile.location",
        "_id":0
    }},
    {"$limit":5},
])

for element in data:

	print(element["location"])
	location = geolocator.geocode(element["location"])
	data["location"] = location
	print((location.latitude, location.longitude))

```

Please feel free to comment and suggest. I will post the final web url as soon as the app is ready. Thanks for reading.

-lightproject
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 9 others
👎  
properties (23)
authorlightproject
permlinksteem-map-development-road
categorysteemdev
json_metadata{"tags":["steemdev","programming","statistics","creativity","steemit"],"image":["https://image.ibb.co/bYU5M5/steem_map.jpg","https://www.seeklogo.net/wp-content/uploads/2015/09/new-google-maps-logo-vector-download.jpg","https://steemitimages.com/0x0/https://i.imgur.com/uAu5ST4.jpg"],"links":["https://imgbb.com/","https://steemit.com/steemdata/@furion/getting-started-with-steemdata"],"app":"steemit/0.1","format":"markdown"}
created2017-09-24 22:08:24
last_update2017-09-25 08:06:30
depth0
children25
last_payout2017-10-01 22:08:24
cashout_time1969-12-31 23:59:59
total_payout_value118.482 HBD
curator_payout_value38.401 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,333
author_reputation36,907,470,029,230
root_title"Steem Map: Development Road"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,832,070
net_rshares44,046,235,567,955
author_curate_reward""
vote details (74)
@beingnaveed ·
I love the idea. Can't wait to download the app :D
properties (22)
authorbeingnaveed
permlinkre-lightproject-steem-map-development-road-20170925t083316957z
categorysteemdev
json_metadata{"tags":["steemdev"],"app":"steemit/0.1"}
created2017-09-25 08:33:18
last_update2017-09-25 08:33:18
depth1
children1
last_payout2017-10-02 08:33:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length50
author_reputation1,296,747,871,778
root_title"Steem Map: Development Road"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,865,122
net_rshares0
@lightproject ·
hello @beingnaveed! the app will be Web based, so no need to download! Thanks for support
properties (22)
authorlightproject
permlinkre-beingnaveed-re-lightproject-steem-map-development-road-20170925t083406922z
categorysteemdev
json_metadata{"tags":["steemdev"],"users":["beingnaveed"],"app":"steemit/0.1"}
created2017-09-25 08:34:06
last_update2017-09-25 08:34:06
depth2
children0
last_payout2017-10-02 08:34:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length89
author_reputation36,907,470,029,230
root_title"Steem Map: Development Road"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,865,211
net_rshares0
@dmcamera ·
What an interesting project. It will be interesting to see the results!
properties (22)
authordmcamera
permlinkre-lightproject-steem-map-development-road-20170928t124638208z
categorysteemdev
json_metadata{"tags":["steemdev"],"app":"steemit/0.1"}
created2017-09-28 12:46:36
last_update2017-09-28 12:46:36
depth1
children3
last_payout2017-10-05 12:46:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length71
author_reputation12,678,127,431,922
root_title"Steem Map: Development Road"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id16,178,723
net_rshares0
@lightproject ·
Results are visible now! https://steemit.com/steemdev/@lightproject/steem-map-development-road-3-videoblog
properties (22)
authorlightproject
permlinkre-dmcamera-re-lightproject-steem-map-development-road-20171023t091651173z
categorysteemdev
json_metadata{"tags":["steemdev"],"links":["https://steemit.com/steemdev/@lightproject/steem-map-development-road-3-videoblog"],"app":"steemit/0.1"}
created2017-10-23 09:17:03
last_update2017-10-23 09:17:03
depth2
children2
last_payout2017-10-30 09:17:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length106
author_reputation36,907,470,029,230
root_title"Steem Map: Development Road"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id18,365,384
net_rshares0
@dmcamera ·
Thanks! I'll try to use it by putting in the co-ordinates when I can!
properties (22)
authordmcamera
permlinkre-lightproject-re-dmcamera-re-lightproject-steem-map-development-road-20171023t143027616z
categorysteemdev
json_metadata{"tags":["steemdev"],"community":"busy","app":"busy/2.0.0"}
created2017-10-23 14:30:27
last_update2017-10-23 14:30:27
depth3
children1
last_payout2017-10-30 14:30:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length69
author_reputation12,678,127,431,922
root_title"Steem Map: Development Road"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id18,379,788
net_rshares0
@itzikuna ·
Good idea!!!
properties (22)
authoritzikuna
permlinkre-lightproject-steem-map-development-road-20170924t220929983z
categorysteemdev
json_metadata{"tags":["steemdev"],"app":"steemit/0.1"}
created2017-09-24 22:09:36
last_update2017-09-24 22:09:36
depth1
children2
last_payout2017-10-01 22:09:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length12
author_reputation807,907,293,662
root_title"Steem Map: Development Road"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,832,144
net_rshares0
@lightproject ·
Thanks mate I appreciate.
properties (22)
authorlightproject
permlinkre-itzikuna-re-lightproject-steem-map-development-road-20170924t221034959z
categorysteemdev
json_metadata{"tags":["steemdev"],"app":"steemit/0.1"}
created2017-09-24 22:10:33
last_update2017-09-24 22:10:33
depth2
children0
last_payout2017-10-01 22:10:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length25
author_reputation36,907,470,029,230
root_title"Steem Map: Development Road"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,832,203
net_rshares0
@lightproject ·
I mean, lady :D
properties (22)
authorlightproject
permlinkre-itzikuna-re-lightproject-steem-map-development-road-20170925t085709641z
categorysteemdev
json_metadata{"tags":["steemdev"],"app":"steemit/0.1"}
created2017-09-25 08:57:09
last_update2017-09-25 08:57:09
depth2
children0
last_payout2017-10-02 08:57:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length15
author_reputation36,907,470,029,230
root_title"Steem Map: Development Road"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,866,811
net_rshares0
@kodaxx ·
You've got my 3 cents!
properties (22)
authorkodaxx
permlinkre-lightproject-steem-map-development-road-20170924t233136955z
categorysteemdev
json_metadata{"tags":["steemdev"],"app":"steemit/0.1"}
created2017-09-24 23:31:36
last_update2017-09-24 23:31:36
depth1
children3
last_payout2017-10-01 23:31:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length22
author_reputation3,759,197,365,919
root_title"Steem Map: Development Road"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,836,114
net_rshares0
@lightproject ·
Appreciate the support @kodaxx !
properties (22)
authorlightproject
permlinkre-kodaxx-re-lightproject-steem-map-development-road-20170925t074117973z
categorysteemdev
json_metadata{"tags":["steemdev"],"users":["kodaxx"],"app":"steemit/0.1"}
created2017-09-25 07:41:18
last_update2017-09-25 07:41:18
depth2
children0
last_payout2017-10-02 07:41:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length32
author_reputation36,907,470,029,230
root_title"Steem Map: Development Road"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,861,444
net_rshares0
@lightproject ·
$0.03
pum intended? xD
👍  
properties (23)
authorlightproject
permlinkre-kodaxx-re-lightproject-steem-map-development-road-20170925t152930261z
categorysteemdev
json_metadata{"tags":["steemdev"],"app":"steemit/0.1"}
created2017-09-25 15:29:33
last_update2017-09-25 15:29:33
depth2
children1
last_payout2017-10-02 15:29:33
cashout_time1969-12-31 23:59:59
total_payout_value0.021 HBD
curator_payout_value0.005 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length16
author_reputation36,907,470,029,230
root_title"Steem Map: Development Road"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,896,977
net_rshares8,163,762,347
author_curate_reward""
vote details (1)
@kodaxx ·
Definitely ;)
properties (22)
authorkodaxx
permlinkre-lightproject-2017925t11495246z
categorysteemdev
json_metadata{"tags":"steemdev","app":"esteem/1.4.6","format":"markdown+html","community":"esteem"}
created2017-09-25 17:49:54
last_update2017-09-25 17:49:54
depth3
children0
last_payout2017-10-02 17:49:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length13
author_reputation3,759,197,365,919
root_title"Steem Map: Development Road"
beneficiaries
0.
accountesteemapp
weight500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,908,429
net_rshares0
@melih · (edited)
Is it violation of privacy?
properties (22)
authormelih
permlinkre-lightproject-steem-map-development-road-20170925t105631421z
categorysteemdev
json_metadata{"tags":["steemdev"],"app":"steemit/0.1"}
created2017-09-25 10:56:30
last_update2017-09-25 10:57:30
depth1
children4
last_payout2017-10-02 10:56:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length27
author_reputation892,091,255,199
root_title"Steem Map: Development Road"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,875,101
net_rshares0
@lightproject ·
No, it feeds from locations that are explicitly set by users.
properties (22)
authorlightproject
permlinkre-melih-re-lightproject-steem-map-development-road-20170925t105744575z
categorysteemdev
json_metadata{"tags":["steemdev"],"app":"steemit/0.1"}
created2017-09-25 10:57:45
last_update2017-09-25 10:57:45
depth2
children0
last_payout2017-10-02 10:57:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length61
author_reputation36,907,470,029,230
root_title"Steem Map: Development Road"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,875,190
net_rshares0
@lightproject ·
Do you like the project? Any suggestion or feedback?
properties (22)
authorlightproject
permlinkre-melih-re-lightproject-steem-map-development-road-20170925t110015470z
categorysteemdev
json_metadata{"tags":["steemdev"],"app":"steemit/0.1"}
created2017-09-25 11:00:15
last_update2017-09-25 11:00:15
depth2
children2
last_payout2017-10-02 11:00:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length52
author_reputation36,907,470,029,230
root_title"Steem Map: Development Road"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,875,370
net_rshares0
@melih · (edited)
There is a steemit worldmap project. People can sign their travel posts on that map. Maybe your project and that steemit worldmap project could be combined. For example: 1 map with 2 layers. People could be filter the layers. So, they could see both layers or one of them. One map is better instead of lots of steemit maps.
properties (22)
authormelih
permlinkre-lightproject-re-melih-re-lightproject-steem-map-development-road-20170925t132528293z
categorysteemdev
json_metadata{"tags":["steemdev"],"app":"steemit/0.1"}
created2017-09-25 13:25:03
last_update2017-09-25 13:25:42
depth3
children1
last_payout2017-10-02 13:25:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length323
author_reputation892,091,255,199
root_title"Steem Map: Development Road"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,886,024
net_rshares0
@noisy ·
Are you aware that [SteemSpot](http://www.steemspot.com/) project exists?

[I am building SteemProjects](https://steemit.com/steemdev/@noisy/steemprojects-what-it-is-going-to-be-and-8-reasons-why-i-am-working-on-it-right-now) to make a comparison of similar projects more easy :)
properties (22)
authornoisy
permlinkre-lightproject-steem-map-development-road-20170926t154237385z
categorysteemdev
json_metadata{"tags":["steemdev"],"links":["http://www.steemspot.com/","https://steemit.com/steemdev/@noisy/steemprojects-what-it-is-going-to-be-and-8-reasons-why-i-am-working-on-it-right-now"],"app":"steemit/0.1"}
created2017-09-26 15:42:33
last_update2017-09-26 15:42:33
depth1
children1
last_payout2017-10-03 15:42:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length279
author_reputation59,974,373,499,600
root_title"Steem Map: Development Road"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,995,377
net_rshares0
@lightproject ·
No, I wasnt, but now I am! Cool project @noisy, ill check your work, cool to see creative people around!
properties (22)
authorlightproject
permlinkre-noisy-re-lightproject-steem-map-development-road-20170927t073830098z
categorysteemdev
json_metadata{"tags":["steemdev"],"users":["noisy"],"app":"steemit/0.1"}
created2017-09-27 07:38:30
last_update2017-09-27 07:38:30
depth2
children0
last_payout2017-10-04 07:38:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length104
author_reputation36,907,470,029,230
root_title"Steem Map: Development Road"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id16,058,026
net_rshares0
@raycoms ·
Seems like an interesting idea for sure =)
properties (22)
authorraycoms
permlinkre-lightproject-steem-map-development-road-20170925t120656261z
categorysteemdev
json_metadata{"tags":["steemdev"],"app":"steemit/0.1"}
created2017-09-25 12:06:57
last_update2017-09-25 12:06:57
depth1
children1
last_payout2017-10-02 12:06:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length42
author_reputation115,046,969,395,583
root_title"Steem Map: Development Road"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,880,256
net_rshares0
@lightproject ·
Thanks mate, appreciate it. I  hope final development will run smooth :)
properties (22)
authorlightproject
permlinkre-raycoms-re-lightproject-steem-map-development-road-20170925t130025158z
categorysteemdev
json_metadata{"tags":["steemdev"],"app":"steemit/0.1"}
created2017-09-25 13:00:24
last_update2017-09-25 13:00:24
depth2
children0
last_payout2017-10-02 13:00:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length72
author_reputation36,907,470,029,230
root_title"Steem Map: Development Road"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,884,117
net_rshares0
@thunderland ·
Good Idea and great post. I follow you now for more news about the apis. 

Look at my posts too @thunderland maybe follow me, if you like them.
properties (22)
authorthunderland
permlinkre-lightproject-steem-map-development-road-20170924t221713126z
categorysteemdev
json_metadata{"tags":["steemdev"],"users":["thunderland"],"app":"steemit/0.1"}
created2017-09-24 22:12:36
last_update2017-09-24 22:12:36
depth1
children1
last_payout2017-10-01 22:12:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length143
author_reputation4,132,384,371,663
root_title"Steem Map: Development Road"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,832,297
net_rshares0
@lightproject ·
Hello @thunderland I will check your work ,thanks for reading.
properties (22)
authorlightproject
permlinkre-thunderland-re-lightproject-steem-map-development-road-20170924t221344210z
categorysteemdev
json_metadata{"tags":["steemdev"],"users":["thunderland"],"app":"steemit/0.1"}
created2017-09-24 22:13:42
last_update2017-09-24 22:13:42
depth2
children0
last_payout2017-10-01 22:13:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length62
author_reputation36,907,470,029,230
root_title"Steem Map: Development Road"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,832,361
net_rshares0
@vikasjaat ·
I am not that much technical but I respect your initiative that you came up with such service by which we can connect locally with other steemians...
properties (22)
authorvikasjaat
permlinkre-lightproject-steem-map-development-road-20170925t211019106z
categorysteemdev
json_metadata{"tags":["steemdev"],"app":"steemit/0.1"}
created2017-09-25 21:10:24
last_update2017-09-25 21:10:24
depth1
children0
last_payout2017-10-02 21:10:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length149
author_reputation167,288,028,053
root_title"Steem Map: Development Road"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,923,115
net_rshares0