Code Monkey home page Code Monkey logo

yelpfusionsharp's People

Contributors

ranga543 avatar

Watchers

 avatar

yelpfusionsharp's Issues

Error converting value {null} to type 'System.Double'. Path 'coordinates.latitude

It seems for every YelpFusion api I use I get a similar issue when I am placing a lattitude/longitude value in the autoComplete/GetBusiness/Search functions of the yelp.Api. I really don't know how to get around this. For a test scenario, I used:

request.Term = "Papa Johns Pizza";
request.Latitude = double.Parse("30.0477325");
request.Longitude = double.Parse("-95.18446720000003");

I even used request.Location = "2855 W Lake Houston Pkwy, Kingwood, TX 77339, USA";

yelpSharperClient.Search(new request);

From here when I run the GetSearch I run into the error converting value {null}. I tried doing some searching on why this was the case but couldn't find anything.

I also did a test case where I ran autoComplete for this, which gave me a business Id.
request.Term = "Domino's Pizza";
request.Latitude = double.Parse("30.0498865");
request.Longitude = double.Parse("-95.18670780000002");

I even used request.Location = "4319 Kingwood Dr, Kingwood, TX 77339, USA";

var autocompleteResponse = yelpSharperClient.Autocomplete(new request);

From the business Id I try to get the business from the GetBusiness call but I run into the same error.

var businessResponse= yelpSharperClient.GetBusiness(new autocompleteResponse.Businesses[0].Id);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.