查找所有地区/城市的地区 [英] Find all localities/regions of a city

查看:201
本文介绍了查找所有地区/城市的地区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在互联网上找到很多东西,但是我无法获得完美的实用程序/ API来满足我的要求。



我正在寻找一种实用程序给定城市名称,提供该城市的所有地区/地区。 (如果与区域一起使用,那么每个区域/区域的pincode也可以提供)。



PS - 我一直在想,Google Maps,open-street地图提供这样的数据,因为他们的地图已经是非常详尽的数据,他们实际上在他们的系统中有每个数据点?

得到一个印度城市的地方名单,我使用了两种资源。这不是一个API,也不涉及代码。通过遵循下面提到的步骤,您可以获得某个城市的excel中的地点列表。因此,如果有人对地区的手动列表感兴趣,可能会有所帮助。

1)印度邮政网站:
$ b a) href =http://cept.gov.in/lbpsd/placesearch.aspx =nofollow> http://cept.gov.in/lbpsd/placesearch.aspx



按F12打开开发人员工具。它将打开一个平行窗口和印度邮政网站屏幕。



c)在开发人员工具中,按清除按钮清除所有日志。 d)在印度邮政网站上,选择州,城市,城镇。

e)在开发人员工具窗口,您将看到一个名为picasasearch.aspx的日志条目。



f)点击它旁边的复选框。



g)将打开一个新窗口选项卡。点击回复



会有很多代码。向下滚动代码。



i)你会找到州的列表,你选择的州的城镇列表,然后列出你选择的城镇的名单。

j)复制并粘贴列表在Excel中的地方,并使用文本到列功能只获取地点名称。

<2> 多米诺骨牌网站: - 它会让城市中的地方多米诺骨牌经营



a)转到dominos.co.in。 b)点击在线订购。

c)按F12打开开发者工具。它会打开一个平行窗口与多米诺骨牌网站的屏幕。



d)在开发人员工具中,按清除按钮清除所有日志。
$ b 在多米诺骨牌网站上,选择城市例如f)在选择城市时,您会发现在日志中,新条目列出了名称?city_id = LUDHIANA。



g)点击旁边的复选框。



打开一个新窗口。点击回复 / p>

i)你会在大括号中的data后面找到json格式的地方列表

j )复制列表并使用JSON格式化程序进行处理。我使用了 https://jsonformatter.curiousconcept.com/



k)将处理后的结果复制到excel表格中,并使用文本到列功能获取仅地点列表。


I have tried to find a lot over the Internet but I am unable to get a perfect utility/API for my requirement.

I am looking for a utility that, given a city name, provides all the localities/regions of that city. (Would be great if alongwith the regions, the pincodes of every area/region could also be provided).

P.S - I have been wondering if Google Maps, open-street maps provide such data, as their maps are already very data exhaustive and they virtually have every data point in their system?

解决方案

To get the list of localities in an Indian city, I have used two resources. It's not an API and there are no codes involved.By following the steps mentioned below, you can get the list of localities in excel for a particular city.So, if someone is interested in manual listing of the localities, it might be helpful.

1) India Post Website:-

a) Go to http://cept.gov.in/lbpsd/placesearch.aspx

b) Press F12 to open developer tools. It will open a parallel window along with India Post website screen.

c) In developer tools,clear all the logs by pressing "Clear" button.

d) On Indian post website,select state,city,town.

e) In developer tools window,you will see a log entry with name "picasasearch.aspx"

f) Click on the check-box next to it.

g) A new window tab will open. Click on "responses"

h) There will be a lot of code.Scroll down the code.

i) You will find the list of states, list of towns for your selected state and then list of locaities for your selected town.

j) Copy and paste the list of localities in excel and use "text to columns" feature to get only locality names.

2) Dominos Website:- It will give the localities in the cities Dominos operates

a) Go to dominos.co.in.

b) Click on Order online.

c) Press F12 to open developer tools. It will open a parallel window along with Dominos website screen.

d) In developer tools,clear all the logs by pressing "Clear" button.

e) On Dominos website,select city e.g. "Ludhiana".

f) Upon selecting city, you will find that in logs,a new entry has listed up with name "?city_id=LUDHIANA"

g) Click on the checkbox adjacent to it.

h) A new window will open.Click on "responses"

i) You will find the list of localities in json format there after "data" in curly brackets

j) Copy the list and use a JSON formatter to process it. I used https://jsonformatter.curiousconcept.com/

k) Copy the processed result in an excel sheet and use "text to columns" feature to get only locality list.

这篇关于查找所有地区/城市的地区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆