Comments (7)
Ok thanks for the data.
Will look into it soon
from googleapi.
The issue has been fixed, PR merged and nuget package published.
from googleapi.
Hi.
I just took a quick look, and unless i am wrong geocoding use maps api location types, and what you are referring to is for place searches and additions. A while ago I noticed that the support is different for the two api, or Google documentation is a bit confusing.
If you can try post your request data, i can try reproduce your case.
from googleapi.
hi, thanks for the quick answer.
The request url is: https://maps.google.com/maps/api/geocode/json?key=AIza...&language=hu&address=Budapest%20karin®ion=hu
The response is:
{
"results" : [
{
"address_components" : [
{
"long_name" : "75",
"short_name" : "75",
"types" : [ "street_number" ]
},
{
"long_name" : "Fóti út",
"short_name" : "Fóti út",
"types" : [ "route" ]
},
{
"long_name" : "IV. kerület",
"short_name" : "IV. kerület",
"types" : [ "political", "sublocality", "sublocality_level_1" ]
},
{
"long_name" : "Budapest",
"short_name" : "Budapest",
"types" : [ "locality", "political" ]
},
{
"long_name" : "Magyarország",
"short_name" : "HU",
"types" : [ "country", "political" ]
},
{
"long_name" : "1047",
"short_name" : "1047",
"types" : [ "postal_code" ]
}
],
"formatted_address" : "Budapest, Fóti út 75, 1047 Magyarország",
"geometry" : {
"location" : {
"lat" : 47.5775859,
"lng" : 19.092553
},
"location_type" : "ROOFTOP",
"viewport" : {
"northeast" : {
"lat" : 47.5789348802915,
"lng" : 19.0939019802915
},
"southwest" : {
"lat" : 47.5762369197085,
"lng" : 19.0912040197085
}
}
},
"place_id" : "ChIJSR65OBfaQUcR_GZAMfB2tfQ",
"types" : [ "establishment", "lodging", "point_of_interest" ]
}
],
"status" : "OK"
}
where the type is "lodging", which is valid according to the documentation, but lacking in the Enum.
If the seachstring is "Budapest Karinthy", the type "school" comes up.
I've recently encountered the following values: food, department_store, home_goods_store, lodging, university, school, cafe, bar, church, hospital.
from googleapi.
Hi
I have made a fix. I will release a Nuget package soon, but you can try the branch if you like.
from googleapi.
thanks! I'll test it and get back to you if needed
from googleapi.
Cool.
I did perform some integration tests, and determined that 'unknown' is now returned when no enum value exists for a string location type.
Let me know how it works out.
from googleapi.
Related Issues (20)
- Retry policy HOT 2
- Routing API "GeocodingResults" doesn't seem to be a collection? HOT 2
- Status = OK when it shouldn't HOT 2
- .NET 7.0 - iOS - Operation is not supported on this platform. HOT 9
- Calling .Result from QueryAsync either hangs or causes a hard crash HOT 4
- Getting list of adresses when searching a street HOT 3
- Support for Nearby Search (New) HOT 2
- Entity fields returned by TextSearch API are inconsistent with rawjson data HOT 1
- Convert test projects to MS-Test
- .NET 7 target has issue with deps pointed from .NET8 HOT 4
- API Key required when Client ID alone should be sufficient HOT 1
- injecting own functionality HOT 6
- Error when trying to translate a HTML-Text HOT 5
- Inaccuracy in Distance Calculation Using Google Maps API with .NET 8.0 HOT 5
- Issue with language code "bg-Latn" HOT 3
- Enum JsonConverters are not applied
- Method summary for AutoComplete and QueryAutoComplete wrong? HOT 2
- TravelMode.WALKING is only supported in lower case HOT 7
- Problems with Address Validation HOT 1
- maneuver is always None HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from googleapi.