Geocode an address written in the native language using English letters

Friends,

I am analyzing some texts. My requirement is a gecode address written in the English letters of another native language.

Ex: chandpur market ke paas, village gorthaniya, UP, INDIA 

In the above sentence, words like “ke paas” → this is HINDI (Indian national language), which means “close” in English, and “shandapur market” is a noun (can be ignored for conversion)

Now my task is to translate such thousands of words into English and determine the name of the street and its code. Unfortunately, I don’t have a postcode or an exact address.

Can you help someone here?

Thanks at Advance !!

+5
source share
1 answer

The Google geocode api supports Hindi, so you don’t have to translate it into English. Here is an example of using my googleway package (in R) with the language = "hi" argument.

You will need an API key to use the Google APIs through googleway

 library(googleway) set_key("your_api_key") res <- google_geocode(address = "village gorthaniya, UP, INDIA", language = "hi") geocode_address(res) # [1] "गोर्थानिया, उत्तर प्रदेश 272181, भारत" geocode_coordinates(res) # lat lng # 1 26.85848 82.50099 geocode_address_components(res) # long_name short_name types # 1 गोर्थानिया गोर्थानिया locality, political # 2 बस्ती बस्ती administrative_area_level_2, political # 3 उत्तर प्रदेश उ॰ प्र॰ administrative_area_level_1, political # 4 भारत IN country, political # 5 272181 272181 postal_code 
+4
source

Source: https://habr.com/ru/post/1275967/


All Articles